Software /
code /
prosody
Diff
core/sessionmanager.lua @ 3091:d6a059af2077
rostermanager: Correctly clear the bare_sessions table on roster load errors during bind.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Sun, 23 May 2010 05:46:52 +0500 |
parent | 3089:69fb1cb6b551 |
child | 3143:887a6374f51c |
child | 3236:4727b2b0e069 |
line wrap: on
line diff
--- a/core/sessionmanager.lua Sat May 22 12:20:22 2010 +0100 +++ b/core/sessionmanager.lua Sun May 23 05:46:52 2010 +0500 @@ -181,7 +181,7 @@ hosts[session.host].sessions[session.username].sessions[resource] = nil; session.full_jid = nil; session.resource = nil; - if next(bare_sessions[session.username..'@'..session.host]) == nil then + if next(bare_sessions[session.username..'@'..session.host].sessions) == nil then bare_sessions[session.username..'@'..session.host] = nil; hosts[session.host].sessions[session.username] = nil; end