aboutsummaryrefslogtreecommitdiffstats
path: root/core/sessionmanager.lua
diff options
context:
space:
mode:
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 60135e1f..ecc829e4 100644
--- a/core/sessionmanager.lua
+++ b/core/sessionmanager.lua
@@ -106,6 +106,7 @@ local function destroy_session(session, err)
if host_session.events.fire_event("pre-resource-unbind", {session=session, error=err}) then
return;
end
+ session.destroyed = true; -- Past this point the session is DOOMED!
host_session.sessions[session.username].sessions[session.resource] = nil;
full_sessions[session.full_jid] = nil;