diff options
author | Matthew Wild <mwild1@gmail.com> | 2010-03-14 03:05:43 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2010-03-14 03:05:43 +0000 |
commit | c1cb6b9e9b87dfb2f068aa01ab1fb955852c5360 (patch) | |
tree | 2780f656b9d8cee9ed911b9bf2a3c0fd381b4486 /net | |
parent | ef9204bca17420748f0757806d5942f8948a1450 (diff) | |
download | prosody-c1cb6b9e9b87dfb2f068aa01ab1fb955852c5360.tar.gz prosody-c1cb6b9e9b87dfb2f068aa01ab1fb955852c5360.zip |
net.xmppcomponent_listener: Don't allow closing a session that has already been destroyed
Diffstat (limited to 'net')
-rw-r--r-- | net/xmppcomponent_listener.lua | 1 |
1 files changed, 1 insertions, 0 deletions
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 |