diff options
author | Matthew Wild <mwild1@gmail.com> | 2008-10-23 17:27:41 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2008-10-23 17:27:41 +0100 |
commit | 9e6c3919af199834aa3f5abb2d7988d38e6f09ed (patch) | |
tree | 399b6f112ee0e13b253c42a793164f55d1bf9a57 /core | |
parent | ff0fe0544adcca56ea47acdfda9c76dfe990ee61 (diff) | |
download | prosody-9e6c3919af199834aa3f5abb2d7988d38e6f09ed.tar.gz prosody-9e6c3919af199834aa3f5abb2d7988d38e6f09ed.zip |
faster checking for other sessions
Diffstat (limited to 'core')
-rw-r--r-- | core/sessionmanager.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/sessionmanager.lua b/core/sessionmanager.lua index b012ac6c..a4fb8a87 100644 --- a/core/sessionmanager.lua +++ b/core/sessionmanager.lua @@ -42,6 +42,7 @@ function destroy_session(session) local nomore = true; for res, ssn in pairs(hosts[session.host].sessions[session.username]) do nomore = false; + break; end if nomore then hosts[session.host].sessions[session.username] = nil; |