From 887dc6887baa16d13ff5d06af44c74c2439ee3b6 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Fri, 29 May 2009 23:23:56 +0500 Subject: sessionmanager: Removed a redundant check --- core/sessionmanager.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'core') diff --git a/core/sessionmanager.lua b/core/sessionmanager.lua index 08e9b7ed..bca887da 100644 --- a/core/sessionmanager.lua +++ b/core/sessionmanager.lua @@ -66,10 +66,8 @@ function destroy_session(session, err) -- 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); -- cgit v1.2.3