util/xmppstream.lua
changeset 4306 a101c59772e7
parent 4290 aaa06e68a9e4
parent 4305 e3ffa91517cc
child 4420 6f5ed0f4a3e6
--- a/util/xmppstream.lua	Sat Jun 04 19:18:11 2011 +0100
+++ b/util/xmppstream.lua	Sun Jun 05 01:54:06 2011 +0100
@@ -170,7 +170,7 @@
 
 	local function restricted_handler(parser)
 		cb_error(session, "parse-error", "restricted-xml", "Restricted XML, see RFC 6120 section 11.1.");
-		if not parser:stop() then
+		if not parser.stop or not parser:stop() then
 			error("Failed to abort parsing");
 		end
 	end