Changeset

4873:19e69cea6146

mod_s2s: Only try next target if the stream didn't open
author Matthew Wild <mwild1@gmail.com>
date Sun, 13 May 2012 16:03:05 +0100
parents 4872:b2059452fb55
children 4874:4e9781a61242
files plugins/mod_s2s/mod_s2s.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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");