Software /
code /
prosody
Changeset
2757:c13816e0c546
net.xmppcomponent_listener: Don't allow closing a session that has already been destroyed
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sun, 14 Mar 2010 03:05:43 +0000 |
parents | 2756:d81af905ccce |
children | 2758:0476a662dacc |
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: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