Software /
code /
prosody
Changeset
4592:0a9528b178fd
mod_s2s: remove conn sessions clearing redundancy and leave it only in listener.ondisconnect
author | Marco Cirillo <maranda@lightwitch.org> |
---|---|
date | Mon, 05 Mar 2012 16:39:50 +0000 |
parents | 4589:8553d822f417 |
children | 4593:470f502f02a3 |
files | plugins/s2s/mod_s2s.lua |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/s2s/mod_s2s.lua Mon Mar 05 11:07:10 2012 +0000 +++ b/plugins/s2s/mod_s2s.lua Mon Mar 05 16:39:50 2012 +0000 @@ -280,7 +280,6 @@ 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 @@ return; -- Connection lives, for now end end - sessions[conn] = nil; + sessions[conn] = nil; end function listener.register_outgoing(conn, session)