net/xmppcomponent_listener.lua

changeset 2757
c13816e0c546
parent 2756
d81af905ccce
child 2758
0476a662dacc
--- a/net/xmppcomponent_listener.lua	Sun Mar 14 03:04:51 2010 +0000
+++ b/net/xmppcomponent_listener.lua	Sun Mar 14 03:05:43 2010 +0000
@@ -106,6 +106,7 @@
 local stream_xmlns_attr = {xmlns='urn:ietf:params:xml:ns:xmpp-streams'};
 local default_stream_attr = { ["xmlns:stream"] = "http://etherx.jabber.org/streams", xmlns = stream_callbacks.default_ns, version = "1.0", id = "" };
 local function session_close(session, reason)
+	if session.destroyed then return; end
 	local log = session.log or log;
 	if session.conn then
 		if session.notopen then

mercurial