mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
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
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user