aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2012-01-17 17:56:36 +0000
committerMatthew Wild <mwild1@gmail.com>2012-01-17 17:56:36 +0000
commit0a3dc54d63e4f6b263831815025c09c1eb73d093 (patch)
tree3e9a16c221f1afff70e90c7ca5783ad41d2afc37
parentf6b941fe1c0f62eb4f4e074a8913f6e2cfcea845 (diff)
downloadprosody-0a3dc54d63e4f6b263831815025c09c1eb73d093.tar.gz
prosody-0a3dc54d63e4f6b263831815025c09c1eb73d093.zip
xmppserver_listener: Only re-attempt connection on disconnect if it was an unauthenticated s2sout (thanks Medics for the log)
-rw-r--r--net/xmppserver_listener.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/xmppserver_listener.lua b/net/xmppserver_listener.lua
index a92b1a7f..048c6c7d 100644
--- a/net/xmppserver_listener.lua
+++ b/net/xmppserver_listener.lua
@@ -178,7 +178,7 @@ end
function xmppserver.ondisconnect(conn, err)
local session = sessions[conn];
if session then
- if err and err ~= "closed" then
+ if err and err ~= "closed" and session.type == "s2sout_unauthed" then
(session.log or log)("debug", "s2s connection attempt failed: %s", err);
if s2s_attempt_connect(session, err) then
(session.log or log)("debug", "...so we're going to try another target");