aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2011-12-07 03:54:28 +0000
committerMatthew Wild <mwild1@gmail.com>2011-12-07 03:54:28 +0000
commit046b9c1dc0020a12ab668fa927c688c433fceecb (patch)
treefd0f0981ae07a0ec53206b77c8a999404dd1878e
parent02027fafeb00508b0a5f04d197d22d9508ae3b9d (diff)
downloadprosody-046b9c1dc0020a12ab668fa927c688c433fceecb.tar.gz
prosody-046b9c1dc0020a12ab668fa927c688c433fceecb.zip
mod_bosh: Remove a session from inactive_sessions before destroying it
-rw-r--r--plugins/mod_bosh.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_bosh.lua b/plugins/mod_bosh.lua
index ffba5c11..3541f614 100644
--- a/plugins/mod_bosh.lua
+++ b/plugins/mod_bosh.lua
@@ -214,6 +214,7 @@ local function bosh_close_stream(session, reason)
held_request:destroy();
end
sessions[session.sid] = nil;
+ inactive_sessions[session] = nil;
sm_destroy_session(session);
end