# HG changeset patch # User Waqas Hussain # Date 1274489607 -18000 # Node ID 69fb1cb6b5519042d1c3d205f09b55c7b41d7d4c # Parent a233aa0511253c5a33776c17aef24e8a23162834 sessionmanager: Change error for reaching resource limit from 'conflict' to 'resource-constraint' during session bind. diff -r a233aa051125 -r 69fb1cb6b551 core/sessionmanager.lua --- a/core/sessionmanager.lua Sat May 22 05:52:24 2010 +0500 +++ b/core/sessionmanager.lua Sat May 22 05:53:27 2010 +0500 @@ -136,7 +136,7 @@ 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", "conflict", "Resource limit reached; only "..limit.." resources allowed"; + return nil, "cancel", "resource-constraint", "Resource limit reached; only "..limit.." resources allowed"; end if sessions[resource] then -- Resource conflict