diff options
author | Matthew Wild <mwild1@gmail.com> | 2012-05-13 16:03:05 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2012-05-13 16:03:05 +0100 |
commit | 1e73eea16196b651a0b530f1cc8709a1fe308ebf (patch) | |
tree | 0ddc68dc487020bab80935d791512e905c7a35f8 /plugins | |
parent | 74ac3c9a8df2694c15fc11a61fae85fc49243308 (diff) | |
download | prosody-1e73eea16196b651a0b530f1cc8709a1fe308ebf.tar.gz prosody-1e73eea16196b651a0b530f1cc8709a1fe308ebf.zip |
mod_s2s: Only try next target if the stream didn't open
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_s2s/mod_s2s.lua | 2 |
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"); |