aboutsummaryrefslogtreecommitdiffstats
path: root/core/sessionmanager.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-03-14 02:59:41 +0000
committerMatthew Wild <mwild1@gmail.com>2010-03-14 02:59:41 +0000
commit415ac76d286a0488bf65ae07b43f4d1b2c27aa75 (patch)
treee53b85299b67362b6917889045e6453f8710e3ab /core/sessionmanager.lua
parentc42dd4c96236f0b83654d83613d7d3cf5dffef84 (diff)
downloadprosody-415ac76d286a0488bf65ae07b43f4d1b2c27aa75.tar.gz
prosody-415ac76d286a0488bf65ae07b43f4d1b2c27aa75.zip
sessionmanager: Don't re-destroy destroyed sessions
Diffstat (limited to 'core/sessionmanager.lua')
-rw-r--r--core/sessionmanager.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/sessionmanager.lua b/core/sessionmanager.lua
index 264c296b..5fa757d6 100644
--- a/core/sessionmanager.lua
+++ b/core/sessionmanager.lua
@@ -88,6 +88,7 @@ end
function destroy_session(session, err)
(session.log or log)("info", "Destroying session for %s (%s@%s)", session.full_jid or "(unknown)", session.username or "(unknown)", session.host or "(unknown)");
+ if session.destroyed then return; end
-- Remove session/resource from user's session list
if session.full_jid then