diff options
author | Matthew Wild <mwild1@gmail.com> | 2012-01-17 17:56:36 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2012-01-17 17:56:36 +0000 |
commit | fc3658aa3a7f4c210c94856af3fbc886171f31ea (patch) | |
tree | 3e9a16c221f1afff70e90c7ca5783ad41d2afc37 /net | |
parent | 5caebc8db16bd0e911119f9a2a76afd2850d2d62 (diff) | |
download | prosody-fc3658aa3a7f4c210c94856af3fbc886171f31ea.tar.gz prosody-fc3658aa3a7f4c210c94856af3fbc886171f31ea.zip |
xmppserver_listener: Only re-attempt connection on disconnect if it was an unauthenticated s2sout (thanks Medics for the log)
Diffstat (limited to 'net')
-rw-r--r-- | net/xmppserver_listener.lua | 2 |
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"); |