aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2012-05-13 16:03:05 +0100
committerMatthew Wild <mwild1@gmail.com>2012-05-13 16:03:05 +0100
commit417defb2ede49f42dd326988eb10e9a50d8db77e (patch)
tree0ddc68dc487020bab80935d791512e905c7a35f8
parentf64f214934a0698273560a96553cd21b49d789f5 (diff)
downloadprosody-417defb2ede49f42dd326988eb10e9a50d8db77e.tar.gz
prosody-417defb2ede49f42dd326988eb10e9a50d8db77e.zip
mod_s2s: Only try next target if the stream didn't open
-rw-r--r--plugins/mod_s2s/mod_s2s.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_s2s/mod_s2s.lua b/plugins/mod_s2s/mod_s2s.lua
index 3dab30f9..8e01a589 100644
--- a/plugins/mod_s2s/mod_s2s.lua
+++ b/plugins/mod_s2s/mod_s2s.lua
@@ -292,7 +292,7 @@ function stream_callbacks.streamclosed(session)
end
function stream_callbacks.streamdisconnected(session, err)
- if err and err ~= "closed" and session.direction == "outgoing" then
+ if err and err ~= "closed" 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
(session.log or log)("debug", "...so we're going to try another target");