plugins/mod_bosh.lua

changeset 693
d8b793e612a9
parent 692
4a218377f4e3
child 701
dc67e3cffff4
equal deleted inserted replaced
692:4a218377f4e3 693:d8b793e612a9
245 (session.log or log)("debug", "BOSH client inactive too long, destroying session at %d", now); 245 (session.log or log)("debug", "BOSH client inactive too long, destroying session at %d", now);
246 sessions[session.sid] = nil; 246 sessions[session.sid] = nil;
247 inactive_sessions[session] = nil; 247 inactive_sessions[session] = nil;
248 sm_destroy_session(session, "BOSH client silent for over "..session.bosh_max_inactive.." seconds"); 248 sm_destroy_session(session, "BOSH client silent for over "..session.bosh_max_inactive.." seconds");
249 end 249 end
250 elseif not session.type then 250 else
251 inactive_sessions[session] = nil; 251 inactive_sessions[session] = nil;
252 end 252 end
253 end 253 end
254 end 254 end
255 255

mercurial