Software /
code /
prosody
Comparison
core/sessionmanager.lua @ 1471:8b3753b080fc
sessionmanager: Reset bare_sessions[user] after resource conflict resolution. Fixes the other stanza gobbling bug \o/
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 03 Jul 2009 21:47:26 +0100 |
parent | 1469:9f2b6e2bc498 |
child | 1478:da11f2652ae9 |
comparison
equal
deleted
inserted
replaced
1470:af4b918e3432 | 1471:8b3753b080fc |
---|---|
130 condition = "conflict"; | 130 condition = "conflict"; |
131 text = "Replaced by new connection"; | 131 text = "Replaced by new connection"; |
132 }; | 132 }; |
133 if not next(sessions) then | 133 if not next(sessions) then |
134 hosts[session.host].sessions[session.username] = { sessions = sessions }; | 134 hosts[session.host].sessions[session.username] = { sessions = sessions }; |
135 bare_sessions[session.username.."@"..session.host] = hosts[session.host].sessions[session.username]; | |
135 end | 136 end |
136 end | 137 end |
137 if increment and sessions[resource] then | 138 if increment and sessions[resource] then |
138 local count = 1; | 139 local count = 1; |
139 while sessions[resource.."#"..count] do | 140 while sessions[resource.."#"..count] do |