util.xmppstream: When error is 'no-stream', pass the received tagname to the error handler
authorMatthew Wild <mwild1@gmail.com>
Sat, 23 Aug 2014 09:22:05 +0100
changeset 6363 ec446efc15e1
parent 6362 f5f44504e18b
child 6364 4e93e8768c36
util.xmppstream: When error is 'no-stream', pass the received tagname to the error handler
util/xmppstream.lua
--- a/util/xmppstream.lua	Wed Aug 27 13:20:08 2014 +0200
+++ b/util/xmppstream.lua	Sat Aug 23 09:22:05 2014 +0100
@@ -109,7 +109,7 @@
 					end
 				else
 					-- Garbage before stream?
-					cb_error(session, "no-stream");
+					cb_error(session, "no-stream", tagname);
 				end
 				return;
 			end