* Fixed negative child agents in the sim stats.

ThreadPoolClientBranch
Teravus Ovares 2008-02-07 08:28:48 +00:00
parent 3674257095
commit dba1f476c9
1 changed files with 6 additions and 0 deletions

View File

@ -317,6 +317,12 @@ namespace OpenSim.Region.Environment.Scenes
public int GetChildAgentCount()
{
// some network situations come in where child agents get closed twice.
if (m_numChildAgents < 0)
{
m_numChildAgents = 0;
}
return m_numChildAgents;
}