Changeset

2755:28f2416a3e4e

net.xmppcomponent_listener: Don't handle stream errors from component sessions that have already been destroyed
author Matthew Wild <mwild1@gmail.com>
date Sun, 14 Mar 2010 03:04:04 +0000
parents 2754:b73055c5d8a1
children 2756:d81af905ccce
files net/xmppcomponent_listener.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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");