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.3-extended
Justin Clark-Casey (justincc) 2012-06-08 00:59:39 +01:00
parent 28f93512bc
commit ba0ebe6d75
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

@ -720,12 +720,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;
}