Software /
code /
prosody
Diff
core/sessionmanager.lua @ 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 |
parent | 4552:414d857ee125 |
child | 4961:29b24a4028ed |
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");