aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/sessionmanager.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/sessionmanager.lua b/core/sessionmanager.lua
index 7f296ff1..60135e1f 100644
--- a/core/sessionmanager.lua
+++ b/core/sessionmanager.lua
@@ -93,12 +93,11 @@ local function retire_session(session)
end
local function destroy_session(session, err)
+ if session.destroyed then return; end
(session.log or log)("debug", "Destroying session for %s (%s@%s)%s",
session.full_jid or "(unknown)", session.username or "(unknown)",
session.host or "(unknown)", err and (": "..err) or "");
- if session.destroyed then return; end
-
-- Remove session/resource from user's session list
if session.full_jid then
local host_session = hosts[session.host];