Diff

util/xmppstream.lua @ 6363:ec446efc15e1

util.xmppstream: When error is 'no-stream', pass the received tagname to the error handler
author Matthew Wild <mwild1@gmail.com>
date Sat, 23 Aug 2014 09:22:05 +0100
parent 6053:2f93a04564b2
child 6367:769a3577dd85
line wrap: on
line diff
--- 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