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 | 329b5943384647e413e68fc020cad19783c6f591 (patch) | |
tree | e571c835a33e6ec61dd3856603aa344e3368c056 | |
parent | a2055895d362fed58ff314820bb7fddd53e40436 (diff) | |
download | prosody-329b5943384647e413e68fc020cad19783c6f591.tar.gz prosody-329b5943384647e413e68fc020cad19783c6f591.zip |
mod_s2s: Don't try to continue attempting to connect when an s2sin is closed
-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"); |