# HG changeset patch # User Matthew Wild # Date 1224779261 -3600 # Node ID 7fee6b63abca40d31dc98590f9da160a05118862 # Parent ebd65feb188cde6ce709c80858d090bcf7838ab8 faster checking for other sessions diff -r ebd65feb188c -r 7fee6b63abca core/sessionmanager.lua --- a/core/sessionmanager.lua Thu Oct 23 16:07:40 2008 +0100 +++ b/core/sessionmanager.lua Thu Oct 23 17:27:41 2008 +0100 @@ -42,6 +42,7 @@ 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;