# HG changeset patch # User Matthew Wild # Date 1268535943 0 # Node ID c13816e0c5469856f5c4d55e1f7fbf694c180c29 # Parent d81af905ccce5dcbf5904a722e3421265d330435 net.xmppcomponent_listener: Don't allow closing a session that has already been destroyed diff -r d81af905ccce -r c13816e0c546 net/xmppcomponent_listener.lua --- 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