Software /
code /
prosody
Changeset
5275:03dc0ae27499
Merge 0.9->trunk
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 28 Dec 2012 12:50:55 +0000 |
parents | 5273:746f07d280e2 (current diff) 5274:0d08c0965824 (diff) |
children | 5283:a3a4de5104ee |
files | |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_s2s/mod_s2s.lua Fri Dec 28 03:03:56 2012 +0100 +++ b/plugins/mod_s2s/mod_s2s.lua Fri Dec 28 12:50:55 2012 +0000 @@ -485,6 +485,7 @@ function listener.ondisconnect(conn, err) local session = sessions[conn]; if session then + sessions[conn] = nil; if err and session.direction == "outgoing" and session.notopen then (session.log or log)("debug", "s2s connection attempt failed: %s", err); if s2sout.attempt_connection(session, err) then @@ -494,7 +495,6 @@ end (session.log or log)("debug", "s2s disconnected: %s->%s (%s)", tostring(session.from_host), tostring(session.to_host), tostring(err or "connection closed")); s2s_destroy_session(session, err); - sessions[conn] = nil; end end