Software /
code /
prosody
Changeset
1226:3b5f9dac2045
sessionmanager: Removed a redundant check
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Fri, 29 May 2009 23:23:56 +0500 |
parents | 1225:1e01a913baf5 |
children | 1227:6a587ca99109 1228:853d3d76ba94 |
files | core/sessionmanager.lua |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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);