author | Waqas Hussain <waqas20@gmail.com> |
Sun, 05 Jun 2011 01:57:43 +0500 | |
changeset 4305 | e3ffa91517cc |
parent 4304 | 73bf8aab8b77 |
child 4306 | a101c59772e7 |
child 4308 | 50e1a3dc2b50 |
--- 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