diff options
author | Marco Cirillo <maranda@lightwitch.org> | 2012-03-05 16:39:50 +0000 |
---|---|---|
committer | Marco Cirillo <maranda@lightwitch.org> | 2012-03-05 16:39:50 +0000 |
commit | 3bb6cff7d45ce44efc0fc9fd6163f66026c0967c (patch) | |
tree | a9cd58c2d26700410b3a6624f93745e77aac95a3 /plugins | |
parent | f340820df2e6828c7f25d072579b7ed1a213ae58 (diff) | |
download | prosody-3bb6cff7d45ce44efc0fc9fd6163f66026c0967c.tar.gz prosody-3bb6cff7d45ce44efc0fc9fd6163f66026c0967c.zip |
mod_s2s: remove conn sessions clearing redundancy and leave it only in listener.ondisconnect
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/s2s/mod_s2s.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/s2s/mod_s2s.lua b/plugins/s2s/mod_s2s.lua index fcdd9dd6..ab122f12 100644 --- a/plugins/s2s/mod_s2s.lua +++ b/plugins/s2s/mod_s2s.lua @@ -280,7 +280,6 @@ function stream_callbacks.streamdisconnected(session, err) end end (session.log or log)("info", "s2s disconnected: %s->%s (%s)", tostring(session.from_host), tostring(session.to_host), tostring(err or "closed")); - sessions[session.conn] = nil; s2s_destroy_session(session, err); end @@ -457,7 +456,7 @@ function listener.ondisconnect(conn, err) return; -- Connection lives, for now end end - sessions[conn] = nil; + sessions[conn] = nil; end function listener.register_outgoing(conn, session) |