diff options
author | Kim Alvefur <zash@zash.se> | 2012-04-29 02:24:00 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2012-04-29 02:24:00 +0200 |
commit | 695ad65e08972b22142fa56c0d6a633eec0a3c0e (patch) | |
tree | e571c835a33e6ec61dd3856603aa344e3368c056 /plugins/s2s/mod_s2s.lua | |
parent | 1ee9f6e09228b268bf3f5dc985d4ba9026a72666 (diff) | |
download | prosody-695ad65e08972b22142fa56c0d6a633eec0a3c0e.tar.gz prosody-695ad65e08972b22142fa56c0d6a633eec0a3c0e.zip |
mod_s2s: Don't try to continue attempting to connect when an s2sin is closed
Diffstat (limited to 'plugins/s2s/mod_s2s.lua')
-rw-r--r-- | plugins/s2s/mod_s2s.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/s2s/mod_s2s.lua b/plugins/s2s/mod_s2s.lua index cee7d6f6..649cd595 100644 --- a/plugins/s2s/mod_s2s.lua +++ b/plugins/s2s/mod_s2s.lua @@ -280,7 +280,7 @@ function stream_callbacks.streamclosed(session) end function stream_callbacks.streamdisconnected(session, err) - if err and err ~= "closed" then + if err and err ~= "closed" and session.direction == "outgoing" 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"); |