diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-03-31 13:56:41 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-03-31 13:56:41 +0100 |
commit | be7514d447877fce41d0cd5b235096d36b01416a (patch) | |
tree | cba19f0fdeeec02d7f360c0d684abf581a3e6125 | |
parent | 4511f645fa3885c1742f0128659d7ebe1a934675 (diff) | |
download | prosody-be7514d447877fce41d0cd5b235096d36b01416a.tar.gz prosody-be7514d447877fce41d0cd5b235096d36b01416a.zip |
mod_bosh: Fix to correctly timeout idle sessions
-rw-r--r-- | plugins/mod_bosh.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_bosh.lua b/plugins/mod_bosh.lua index 46df6b5b..58c2b5aa 100644 --- a/plugins/mod_bosh.lua +++ b/plugins/mod_bosh.lua @@ -34,7 +34,7 @@ local inactive_sessions = {}; -- Sessions which have no open requests local waiting_requests = {}; function on_destroy_request(request) waiting_requests[request] = nil; - local session = request.session; + local session = sessions[request.sid]; if session then local requests = session.requests; for i,r in pairs(requests) do |