Comparison

plugins/mod_bosh.lua @ 4437:916681a9a7be

mod_bosh: Remove a session from inactive_sessions before destroying it
author Matthew Wild <mwild1@gmail.com>
date Wed, 07 Dec 2011 03:54:28 +0000
parent 4436:aa79b3767f98
child 4438:7f51186ed28b
comparison
equal deleted inserted replaced
4436:aa79b3767f98 4437:916681a9a7be
212 for _, held_request in ipairs(session.requests) do 212 for _, held_request in ipairs(session.requests) do
213 held_request:send(session_close_response); 213 held_request:send(session_close_response);
214 held_request:destroy(); 214 held_request:destroy();
215 end 215 end
216 sessions[session.sid] = nil; 216 sessions[session.sid] = nil;
217 inactive_sessions[session] = nil;
217 sm_destroy_session(session); 218 sm_destroy_session(session);
218 end 219 end
219 220
220 function stream_callbacks.streamopened(request, attr) 221 function stream_callbacks.streamopened(request, attr)
221 local sid = attr.sid; 222 local sid = attr.sid;