Diff

plugins/mod_bosh.lua @ 693:d8b793e612a9

BOSH: Make previous fix a bit more efficient
author Matthew Wild <mwild1@gmail.com>
date Mon, 12 Jan 2009 02:59:00 +0000
parent 692:4a218377f4e3
child 701:dc67e3cffff4
line wrap: on
line diff
--- a/plugins/mod_bosh.lua	Mon Jan 12 02:57:49 2009 +0000
+++ b/plugins/mod_bosh.lua	Mon Jan 12 02:59:00 2009 +0000
@@ -247,7 +247,7 @@
 				inactive_sessions[session] = nil;
 				sm_destroy_session(session, "BOSH client silent for over "..session.bosh_max_inactive.." seconds");
 			end
-		elseif not session.type then
+		else
 			inactive_sessions[session] = nil;
 		end
 	end