Changeset

4798:e8bd0a6f45e2

mod_s2s: Don't try to continue attempting to connect when an s2sin is closed
author Kim Alvefur <zash@zash.se>
date Sun, 29 Apr 2012 02:24:00 +0200
parents 4792:bf107d9d4962
children 4799:1537bf7f9618
files plugins/s2s/mod_s2s.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/s2s/mod_s2s.lua	Sat Apr 28 23:13:49 2012 +0100
+++ b/plugins/s2s/mod_s2s.lua	Sun Apr 29 02:24:00 2012 +0200
@@ -280,7 +280,7 @@
 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");