# HG changeset patch # User Kim Alvefur # Date 1358985572 -3600 # Node ID d80e56d8805c83c5d18dadcac6c3e7fb2ee8b680 # Parent 10bc0e2aa55eb63a04e16687709d5417a968e40d mod_s2s: Don't try to close sessions that were destroyed before timeout diff -r 10bc0e2aa55e -r d80e56d8805c plugins/mod_s2s/mod_s2s.lua --- 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",