Software /
code /
prosody
Changeset
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 |
parents | 946:cf4d9e2d33d1 |
children | 948:4aff205cc4cd |
files | plugins/mod_bosh.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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