# HG changeset patch # User Matthew Wild # Date 1336921385 -3600 # Node ID 19e69cea614613cd6e7e385490d50d68c18a8703 # Parent b2059452fb553c13af0475da467ef5bb310eb494 mod_s2s: Only try next target if the stream didn't open diff -r b2059452fb55 -r 19e69cea6146 plugins/mod_s2s/mod_s2s.lua --- a/plugins/mod_s2s/mod_s2s.lua Sun May 13 15:02:38 2012 +0200 +++ b/plugins/mod_s2s/mod_s2s.lua Sun May 13 16:03:05 2012 +0100 @@ -292,7 +292,7 @@ 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");