Diff

util/xmppstream.lua @ 4306:a101c59772e7

Merge 0.8->trunk
author Matthew Wild <mwild1@gmail.com>
date Sun, 05 Jun 2011 01:54:06 +0100
parent 4290:aaa06e68a9e4
parent 4305:e3ffa91517cc
child 4425:6f5ed0f4a3e6
line wrap: on
line diff
--- 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