aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2012-04-29 02:24:00 +0200
committerKim Alvefur <zash@zash.se>2012-04-29 02:24:00 +0200
commit329b5943384647e413e68fc020cad19783c6f591 (patch)
treee571c835a33e6ec61dd3856603aa344e3368c056
parenta2055895d362fed58ff314820bb7fddd53e40436 (diff)
downloadprosody-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.lua2
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");