Changeset

4799:1537bf7f9618

Merge with Zash
author Matthew Wild <mwild1@gmail.com>
date Sun, 29 Apr 2012 02:44:09 +0100
parents 4797:e239668aa6d2 (current diff) 4798:e8bd0a6f45e2 (diff)
children 4800:7ce502f21270
files
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/s2s/mod_s2s.lua	Sun Apr 29 02:10:55 2012 +0100
+++ b/plugins/s2s/mod_s2s.lua	Sun Apr 29 02:44:09 2012 +0100
@@ -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");