diff options
author | Waqas Hussain <waqas20@gmail.com> | 2012-01-25 11:49:27 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2012-01-25 11:49:27 +0500 |
commit | ea7586b3634a22191995ff589a72b32eddc32e3b (patch) | |
tree | 414a6572a3448fc4830b58946298771baba21f0f /util/xmppstream.lua | |
parent | 3a34c326b306321454bdae018b93bf3cf0d4875a (diff) | |
download | prosody-ea7586b3634a22191995ff589a72b32eddc32e3b.tar.gz prosody-ea7586b3634a22191995ff589a72b32eddc32e3b.zip |
util.xmppstream: Have faith in the XML parser matching start and end tags.
Diffstat (limited to 'util/xmppstream.lua')
-rw-r--r-- | util/xmppstream.lua | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/util/xmppstream.lua b/util/xmppstream.lua index adf4a359..09198f21 100644 --- a/util/xmppstream.lua +++ b/util/xmppstream.lua @@ -140,16 +140,8 @@ function new_sax_handlers(session, stream_callbacks) stanza = t_remove(stack); end else - if tagname == stream_tag then - if cb_streamclosed then - cb_streamclosed(session); - end - else - local curr_ns,name = tagname:match(ns_pattern); - if name == "" then - curr_ns, name = "", curr_ns; - end - cb_error(session, "parse-error", "unexpected-element-close", name); + if cb_streamclosed then + cb_streamclosed(session); end end end |