# HG changeset patch # User Matthew Wild # Date 1268535844 0 # Node ID 28f2416a3e4ef3feb5ed7c8b402d6bbebb79f9c2 # Parent b73055c5d8a1822c994baa995cc2d332cac9d91a net.xmppcomponent_listener: Don't handle stream errors from component sessions that have already been destroyed diff -r b73055c5d8a1 -r 28f2416a3e4e net/xmppcomponent_listener.lua --- a/net/xmppcomponent_listener.lua Sun Mar 14 03:03:02 2010 +0000 +++ b/net/xmppcomponent_listener.lua Sun Mar 14 03:04:04 2010 +0000 @@ -37,6 +37,7 @@ local xmlns_xmpp_streams = "urn:ietf:params:xml:ns:xmpp-streams"; function stream_callbacks.error(session, error, data, data2) + if session.destroyed then return; end log("warn", "Error processing component stream: "..tostring(error)); if error == "no-stream" then session:close("invalid-namespace");