diff options
author | Waqas Hussain <waqas20@gmail.com> | 2009-05-29 23:23:56 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2009-05-29 23:23:56 +0500 |
commit | 887dc6887baa16d13ff5d06af44c74c2439ee3b6 (patch) | |
tree | b8c2f06753b8f3a4b922ed7b848bfb45ceb8e1e2 | |
parent | aeeeeb288fe83c22156bb4919419d5453c897635 (diff) | |
download | prosody-887dc6887baa16d13ff5d06af44c74c2439ee3b6.tar.gz prosody-887dc6887baa16d13ff5d06af44c74c2439ee3b6.zip |
sessionmanager: Removed a redundant check
-rw-r--r-- | core/sessionmanager.lua | 6 |
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); |