diff options
author | Matthew Wild <mwild1@gmail.com> | 2012-03-15 03:19:35 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2012-03-15 03:19:35 +0000 |
commit | 44ba3429460e5c9a3ba894fa6ed5c97eaeeb8dcf (patch) | |
tree | 2770d22a689ae2988d52d3c41a165f92d8ad5757 /plugins | |
parent | 8496bd382a0b357eeefbb03e593104b0f11420f2 (diff) | |
parent | dce18041d04aa7a62a749a05341099932d8947f9 (diff) | |
download | prosody-44ba3429460e5c9a3ba894fa6ed5c97eaeeb8dcf.tar.gz prosody-44ba3429460e5c9a3ba894fa6ed5c97eaeeb8dcf.zip |
Merge with Zash
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/s2s/mod_s2s.lua | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/plugins/s2s/mod_s2s.lua b/plugins/s2s/mod_s2s.lua index 04b8ae04..ad7f4862 100644 --- a/plugins/s2s/mod_s2s.lua +++ b/plugins/s2s/mod_s2s.lua @@ -107,10 +107,7 @@ module:hook("route/remote", function (event) 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; |