From 9e6c3919af199834aa3f5abb2d7988d38e6f09ed Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Thu, 23 Oct 2008 17:27:41 +0100 Subject: faster checking for other sessions --- core/sessionmanager.lua | 1 + 1 file changed, 1 insertion(+) 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; -- cgit v1.2.3