diff options
author | Matthew Wild <mwild1@gmail.com> | 2012-05-03 23:18:56 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2012-05-03 23:18:56 +0100 |
commit | d5fc441c5ee723d70c3796de93b8b993ba5d3214 (patch) | |
tree | d6f7206356abb6e1a9e6918fb64c75348048f032 /core | |
parent | 5e53b5f47cb455e395eb7b8e0a0c8741c077035d (diff) | |
download | prosody-d5fc441c5ee723d70c3796de93b8b993ba5d3214.tar.gz prosody-d5fc441c5ee723d70c3796de93b8b993ba5d3214.zip |
sessionmanager: Remove max_resources config option and check, incorrect anyway (thanks Zash)
Diffstat (limited to 'core')
-rw-r--r-- | core/sessionmanager.lua | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/core/sessionmanager.lua b/core/sessionmanager.lua index c101bf4e..37c1626a 100644 --- a/core/sessionmanager.lua +++ b/core/sessionmanager.lua @@ -143,10 +143,6 @@ function bind_resource(session, resource) 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"); |