aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-03-14 02:57:22 +0000
committerMatthew Wild <mwild1@gmail.com>2010-03-14 02:57:22 +0000
commit03734de797479ba2cf10002df6a040b6f7d0c010 (patch)
tree8fb4dae4e01f043399139264d7f51be01b230e00
parent82d5e5fd0ce5e5c7682d8f0211a352fd8bd97efd (diff)
downloadprosody-03734de797479ba2cf10002df6a040b6f7d0c010.tar.gz
prosody-03734de797479ba2cf10002df6a040b6f7d0c010.zip
s2smanager: Don't re-destroy destroyed sessions
-rw-r--r--core/s2smanager.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/s2smanager.lua b/core/s2smanager.lua
index ccd8161f..b65fe00c 100644
--- a/core/s2smanager.lua
+++ b/core/s2smanager.lua
@@ -533,6 +533,7 @@ function retire_session(session)
end
function destroy_session(session, reason)
+ if session.destroyed then return; end
(session.log or log)("info", "Destroying "..tostring(session.direction).." session "..tostring(session.from_host).."->"..tostring(session.to_host));
if session.direction == "outgoing" then