faster checking for other sessions

Thu, 23 Oct 2008 17:27:41 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Thu, 23 Oct 2008 17:27:41 +0100
changeset 124
7fee6b63abca
parent 123
ebd65feb188c
child 125
6b6b8f4ab7e3

faster checking for other sessions

core/sessionmanager.lua file | annotate | diff | comparison | revisions
--- 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;

mercurial