aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/sessionmanager.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/sessionmanager.lua b/core/sessionmanager.lua
index 103533de..2862cd52 100644
--- a/core/sessionmanager.lua
+++ b/core/sessionmanager.lua
@@ -66,6 +66,8 @@ function destroy_session(session, err)
-- Remove session/resource from user's session list
if session.full_jid then
+ hosts[session.host].events.fire_event("resource-unbind", session);
+
hosts[session.host].sessions[session.username].sessions[session.resource] = nil;
full_sessions[session.full_jid] = nil;