diff options
author | Matthew Wild <mwild1@gmail.com> | 2012-04-29 02:44:09 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2012-04-29 02:44:09 +0100 |
commit | 092ad2252d2388f600b1b9bcdd0d44b07a3d3e3b (patch) | |
tree | a300a1ad04fe258eaaa986d9048b9ef7b974eb12 /plugins/s2s/mod_s2s.lua | |
parent | fe228888c0d51612e8b32adc3f9db91b7c6e8ded (diff) | |
parent | 695ad65e08972b22142fa56c0d6a633eec0a3c0e (diff) | |
download | prosody-092ad2252d2388f600b1b9bcdd0d44b07a3d3e3b.tar.gz prosody-092ad2252d2388f600b1b9bcdd0d44b07a3d3e3b.zip |
Merge with Zash
Diffstat (limited to 'plugins/s2s/mod_s2s.lua')
-rw-r--r-- | plugins/s2s/mod_s2s.lua | 2 |
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"); |