diff options
author | Waqas Hussain <waqas20@gmail.com> | 2010-05-23 05:46:52 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2010-05-23 05:46:52 +0500 |
commit | 8abd2f2c24bd83acb36e9c8ace40ac3751f09663 (patch) | |
tree | 94cbd1699f357435fe9021a4e5771610a8ee7798 | |
parent | 41d45e0c64b94de227f048d5f376699dd6041735 (diff) | |
download | prosody-8abd2f2c24bd83acb36e9c8ace40ac3751f09663.tar.gz prosody-8abd2f2c24bd83acb36e9c8ace40ac3751f09663.zip |
rostermanager: Correctly clear the bare_sessions table on roster load errors during bind.
-rw-r--r-- | core/sessionmanager.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/sessionmanager.lua b/core/sessionmanager.lua index 48990de3..fd6ed96e 100644 --- a/core/sessionmanager.lua +++ b/core/sessionmanager.lua @@ -181,7 +181,7 @@ function bind_resource(session, resource) 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 |