Software /
code /
prosody
Changeset
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 |
parents | 5306:10bc0e2aa55e |
children | 5308:fd3219d64414 |
files | plugins/mod_s2s/mod_s2s.lua |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
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",