Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
3090:f14d2962f32c | 3091:d6a059af2077 |
---|---|
179 if err then | 179 if err then |
180 full_sessions[session.full_jid] = nil; | 180 full_sessions[session.full_jid] = nil; |
181 hosts[session.host].sessions[session.username].sessions[resource] = nil; | 181 hosts[session.host].sessions[session.username].sessions[resource] = nil; |
182 session.full_jid = nil; | 182 session.full_jid = nil; |
183 session.resource = nil; | 183 session.resource = nil; |
184 if next(bare_sessions[session.username..'@'..session.host]) == nil then | 184 if next(bare_sessions[session.username..'@'..session.host].sessions) == nil then |
185 bare_sessions[session.username..'@'..session.host] = nil; | 185 bare_sessions[session.username..'@'..session.host] = nil; |
186 hosts[session.host].sessions[session.username] = nil; | 186 hosts[session.host].sessions[session.username] = nil; |
187 end | 187 end |
188 return nil, "cancel", "internal-server-error", "Error loading roster"; | 188 return nil, "cancel", "internal-server-error", "Error loading roster"; |
189 end | 189 end |