Software /
code /
prosody
Diff
plugins/mod_bosh.lua @ 947:84202314ab7f
mod_bosh: Fix to correctly timeout idle sessions
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 31 Mar 2009 13:56:41 +0100 |
parent | 866:8958fe4b2391 |
child | 1042:a3d77353c18a |
child | 1047:8c2d88cda1dd |
line wrap: on
line diff
--- a/plugins/mod_bosh.lua Tue Mar 31 04:34:41 2009 +0100 +++ b/plugins/mod_bosh.lua Tue Mar 31 13:56:41 2009 +0100 @@ -34,7 +34,7 @@ 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