Changeset

4813:77da9671ac39

sessionmanager: Remove max_resources config option and check, incorrect anyway (thanks Zash)
author Matthew Wild <mwild1@gmail.com>
date Thu, 03 May 2012 23:18:56 +0100
parents 4812:5bcdc384e485
children 4814:474684c07a3a
files core/sessionmanager.lua
diffstat 1 files changed, 0 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/core/sessionmanager.lua	Thu May 03 18:59:06 2012 +0100
+++ b/core/sessionmanager.lua	Thu May 03 23:18:56 2012 +0100
@@ -143,10 +143,6 @@
 		bare_sessions[session.username..'@'..session.host] = sessions;
 	else
 		local sessions = hosts[session.host].sessions[session.username].sessions;
-		local limit = config_get(session.host, "core", "max_resources") or 10;
-		if #sessions >= limit then
-			return nil, "cancel", "resource-constraint", "Resource limit reached; only "..limit.." resources allowed";
-		end
 		if sessions[resource] then
 			-- Resource conflict
 			local policy = config_get(session.host, "core", "conflict_resolve");