core/sessionmanager.lua

changeset 1226
3b5f9dac2045
parent 1225
1e01a913baf5
child 1290
c253905a8a55
--- a/core/sessionmanager.lua	Fri May 29 23:22:58 2009 +0500
+++ b/core/sessionmanager.lua	Fri May 29 23:23:56 2009 +0500
@@ -66,10 +66,8 @@
 	
 	-- Remove session/resource from user's session list
 	if session.full_jid then
-		if session.resource then
-			hosts[session.host].sessions[session.username].sessions[session.resource] = nil;
-			full_sessions[session.full_jid] = nil;
-		end
+		hosts[session.host].sessions[session.username].sessions[session.resource] = nil;
+		full_sessions[session.full_jid] = nil;
 			
 		if not next(hosts[session.host].sessions[session.username].sessions) then
 			log("debug", "All resources of %s are now offline", session.username);

mercurial