mod_bosh: Fix to correctly timeout idle sessions

This commit is contained in:
Matthew Wild 2009-03-31 13:56:41 +01:00
parent 4511f645fa
commit be7514d447

View file

@ -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