Go back to calling IncomingCloseAgent() in the "kick user" command for consistency instead of IClientAPI.Close() directly.

This no longer double counts child agent removals
0.7.4.1
Justin Clark-Casey (justincc) 2012-06-08 00:59:39 +01:00
parent d547bcf8d1
commit 5c162ccd57
2 changed files with 1 additions and 7 deletions

View File

@ -486,7 +486,7 @@ namespace OpenSim
else
presence.ControllingClient.Kick("\nThe OpenSim manager kicked you out.\n");
presence.ControllingClient.Close();
presence.Scene.IncomingCloseAgent(presence.UUID);
}
}

View File

@ -702,12 +702,6 @@ namespace OpenSim.Region.Framework.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;
}