From c1cb6b9e9b87dfb2f068aa01ab1fb955852c5360 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sun, 14 Mar 2010 03:05:43 +0000 Subject: net.xmppcomponent_listener: Don't allow closing a session that has already been destroyed --- net/xmppcomponent_listener.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'net') diff --git a/net/xmppcomponent_listener.lua b/net/xmppcomponent_listener.lua index 9d7988cb..c9a0d70b 100644 --- a/net/xmppcomponent_listener.lua +++ b/net/xmppcomponent_listener.lua @@ -106,6 +106,7 @@ end 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 -- cgit v1.2.3