aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-07-03 21:47:26 +0100
committerMatthew Wild <mwild1@gmail.com>2009-07-03 21:47:26 +0100
commit18ab4901ef98fcb320ee62b150d4ec51460fe63d (patch)
tree4617a38189ea65975076bb19d2915e3f31322ea4
parent6d2714d32f29dd35496e4b2b3c1d84ff1467ab2d (diff)
downloadprosody-18ab4901ef98fcb320ee62b150d4ec51460fe63d.tar.gz
prosody-18ab4901ef98fcb320ee62b150d4ec51460fe63d.zip
sessionmanager: Reset bare_sessions[user] after resource conflict resolution. Fixes the other stanza gobbling bug \o/
-rw-r--r--core/sessionmanager.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/sessionmanager.lua b/core/sessionmanager.lua
index 8083ce8a..1b6aee17 100644
--- a/core/sessionmanager.lua
+++ b/core/sessionmanager.lua
@@ -132,6 +132,7 @@ function bind_resource(session, resource)
};
if not next(sessions) then
hosts[session.host].sessions[session.username] = { sessions = sessions };
+ bare_sessions[session.username.."@"..session.host] = hosts[session.host].sessions[session.username];
end
end
if increment and sessions[resource] then