# HG changeset patch # User Waqas Hussain # Date 1327474167 -18000 # Node ID 1dbd06eedaa4662713f9a67013a927441114e1f9 # Parent 722cf2680028e8abeec958f56e2b0ec30d3888ab util.xmppstream: Have faith in the XML parser matching start and end tags. diff -r 722cf2680028 -r 1dbd06eedaa4 util/xmppstream.lua --- a/util/xmppstream.lua Wed Jan 25 11:47:51 2012 +0500 +++ b/util/xmppstream.lua Wed Jan 25 11:49:27 2012 +0500 @@ -140,16 +140,8 @@ 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