mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 03:45:35 +08:00
refactor: rename Scene.IncomingCloseAgent() to CloseAgent() in order to make it clear that all non-clientstack callers should be using this rather than RemoveClient() in order to step through the ScenePresence state machine properly.
Adds IScene.CloseAgent() to replace RemoveClient()
This commit is contained in:
@@ -218,19 +218,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
|
||||
public abstract ISceneAgent AddNewClient(IClientAPI client, PresenceType type);
|
||||
|
||||
/// <summary>
|
||||
/// Remove the given client from the scene.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Only clientstack code should call this directly. All other code should call IncomingCloseAgent() instead
|
||||
/// to properly operate the state machine and avoid race conditions with other close requests (such as directly
|
||||
/// from viewers).
|
||||
/// </remarks>
|
||||
/// <param name='agentID'>ID of agent to close</param>
|
||||
/// <param name='closeChildAgents'>
|
||||
/// Close the neighbour child agents associated with this client.
|
||||
/// </param>
|
||||
public abstract void RemoveClient(UUID agentID, bool closeChildAgents);
|
||||
public abstract bool CloseAgent(UUID agentID, bool force);
|
||||
|
||||
public bool TryGetScenePresence(UUID agentID, out object scenePresence)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user