Software /
code /
prosody
Diff
plugins/mod_s2s/mod_s2s.lua @ 5307:d80e56d8805c
mod_s2s: Don't try to close sessions that were destroyed before timeout
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 24 Jan 2013 00:59:32 +0100 |
parent | 5281:815c689f85ad |
child | 5341:760c22c822be |
line wrap: on
line diff
--- a/plugins/mod_s2s/mod_s2s.lua Thu Jan 24 00:58:17 2013 +0100 +++ b/plugins/mod_s2s/mod_s2s.lua Thu Jan 24 00:59:32 2013 +0100 @@ -429,6 +429,8 @@ add_task(connect_timeout, function () if session.type == "s2sin" or session.type == "s2sout" then return; -- Ok, we're connected + elseif session.type == "s2s_destroyed" then + return; -- Session already destroyed end -- Not connected, need to close session and clean up (session.log or log)("debug", "Destroying incomplete session %s->%s due to inactivity",