aboutsummaryrefslogtreecommitdiffstats
path: root/core/sessionmanager.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2008-10-23 17:27:41 +0100
committerMatthew Wild <mwild1@gmail.com>2008-10-23 17:27:41 +0100
commit9e6c3919af199834aa3f5abb2d7988d38e6f09ed (patch)
tree399b6f112ee0e13b253c42a793164f55d1bf9a57 /core/sessionmanager.lua
parentff0fe0544adcca56ea47acdfda9c76dfe990ee61 (diff)
downloadprosody-9e6c3919af199834aa3f5abb2d7988d38e6f09ed.tar.gz
prosody-9e6c3919af199834aa3f5abb2d7988d38e6f09ed.zip
faster checking for other sessions
Diffstat (limited to 'core/sessionmanager.lua')
-rw-r--r--core/sessionmanager.lua1
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;