Software /
code /
prosody
Changeset
4575:e0c4ac7749a6
Merge backout
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 24 Feb 2012 16:25:45 +0000 |
parents | 4573:09255a10fdfa (current diff) 4574:4c24bb949e73 (diff) |
children | 4576:79c813c4ecc0 |
files | plugins/s2s/mod_s2s.lua |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/s2s/mod_s2s.lua Fri Feb 24 16:23:46 2012 +0000 +++ b/plugins/s2s/mod_s2s.lua Fri Feb 24 16:25:45 2012 +0000 @@ -247,7 +247,7 @@ end function stream_callbacks.streamdisconnected(session, err) - if err and err ~= "stream closed" then + if err and err ~= "closed" then (session.log or log)("debug", "s2s connection attempt failed: %s", err); if s2sout.attempt_connection(session, err) then (session.log or log)("debug", "...so we're going to try another target"); @@ -255,7 +255,7 @@ end end (session.log or log)("info", "s2s disconnected: %s->%s (%s)", tostring(session.from_host), tostring(session.to_host), tostring(err or "closed")); - if session.con then sessions[session.conn] = nil; else (session.log or log)("debug", "stale session's connection already closed"); end + sessions[session.conn] = nil; s2s_destroy_session(session, err); end