changeset 4305 | e3ffa91517cc |
parent 4289 | 1e68721c02f2 |
child 4306 | a101c59772e7 |
--- a/util/xmppstream.lua Sun Jun 05 01:52:48 2011 +0500 +++ b/util/xmppstream.lua Sun Jun 05 01:57:43 2011 +0500 @@ -162,7 +162,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