aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;