sessionmanager: Removed a redundant check
authorWaqas Hussain <waqas20@gmail.com>
Fri, 29 May 2009 23:23:56 +0500
changeset 1226 3b5f9dac2045
parent 1225 1e01a913baf5
child 1227 6a587ca99109
child 1228 853d3d76ba94
sessionmanager: Removed a redundant check
core/sessionmanager.lua
--- 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);