# HG changeset patch # User Kim Alvefur # Date 1331498275 -3600 # Node ID 0445a543ae57b387b08b8d5dc571dcdf2822030b # Parent ba898af15de5196dd6ec76d86fdb4857f5bcf503 mod_s2s: Don't bounce sendq on failed connections since it's handled by s2smanager diff -r ba898af15de5 -r 0445a543ae57 plugins/s2s/mod_s2s.lua --- a/plugins/s2s/mod_s2s.lua Sun Mar 11 20:16:57 2012 +0100 +++ b/plugins/s2s/mod_s2s.lua Sun Mar 11 21:37:55 2012 +0100 @@ -107,10 +107,7 @@ s2sout.initiate_connection(host_session); if (not host_session.connecting) and (not host_session.conn) then log("warn", "Connection to %s failed already, destroying session...", to_host); - if not s2s_destroy_session(host_session, "Connection failed") then - -- Already destroyed, we need to bounce our stanza - host_session:bounce_sendq(host_session.destruction_reason); - end + s2s_destroy_session(host_session, "Connection failed"); return false; end return true;