Changeset

124:7fee6b63abca

faster checking for other sessions
author Matthew Wild <mwild1@gmail.com>
date Thu, 23 Oct 2008 17:27:41 +0100
parents 123:ebd65feb188c
children 125:6b6b8f4ab7e3
files core/sessionmanager.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;