aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2012-04-29 02:44:09 +0100
committerMatthew Wild <mwild1@gmail.com>2012-04-29 02:44:09 +0100
commit15c75e5a4ba27bb9288ab13cf3a167bacc09c9c1 (patch)
treea300a1ad04fe258eaaa986d9048b9ef7b974eb12
parentbd5f9b8cbfd168a21141607218446222ab9d8642 (diff)
parent329b5943384647e413e68fc020cad19783c6f591 (diff)
downloadprosody-15c75e5a4ba27bb9288ab13cf3a167bacc09c9c1.tar.gz
prosody-15c75e5a4ba27bb9288ab13cf3a167bacc09c9c1.zip
Merge with Zash
-rw-r--r--plugins/s2s/mod_s2s.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/s2s/mod_s2s.lua b/plugins/s2s/mod_s2s.lua
index cee7d6f6..649cd595 100644
--- a/plugins/s2s/mod_s2s.lua
+++ b/plugins/s2s/mod_s2s.lua
@@ -280,7 +280,7 @@ function stream_callbacks.streamclosed(session)
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");