o switch to known app instance when requesting unknown instance

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@18140 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
mguesdon 2003-11-24 08:58:20 +00:00
parent 8bb015671e
commit d38fed2f63

View file

@ -177,7 +177,17 @@ GSWLoadBalancing_FindInstance(GSWAppRequest *p_pAppRequest,
pAppInstance =
(GSWAppInstance *)GSWDict_ValueForKey(&pApp->stInstancesDict,
szInstanceNum);
if (pAppInstance)
// Not a known instance
if (!pAppInstance)
{
// but we can switch to a known one ?
if (pApp->fSwitchToKnownInstance)
fFound=GSWLoadBalancing_FindApp(p_pAppRequest,
p_pLogServerData,
p_pURLComponents);
}
else
{
GSWLog(GSW_DEBUG,p_pLogServerData,"Instance Found");
if (pAppInstance->fValid)