sessionmanager: Remove max_resources config option and check, incorrect anyway (thanks Zash)
authorMatthew Wild <mwild1@gmail.com>
Thu, 03 May 2012 23:18:56 +0100
changeset 4813 77da9671ac39
parent 4812 5bcdc384e485
child 4814 474684c07a3a
sessionmanager: Remove max_resources config option and check, incorrect anyway (thanks Zash)
core/sessionmanager.lua
--- 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");