aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-05-29 23:23:56 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-05-29 23:23:56 +0500
commit887dc6887baa16d13ff5d06af44c74c2439ee3b6 (patch)
treeb8c2f06753b8f3a4b922ed7b848bfb45ceb8e1e2
parentaeeeeb288fe83c22156bb4919419d5453c897635 (diff)
downloadprosody-887dc6887baa16d13ff5d06af44c74c2439ee3b6.tar.gz
prosody-887dc6887baa16d13ff5d06af44c74c2439ee3b6.zip
sessionmanager: Removed a redundant check
-rw-r--r--core/sessionmanager.lua6
1 files changed, 2 insertions, 4 deletions
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);