diff -r bbb0bf0a09f5 -r a101c59772e7 util/xmppstream.lua --- 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