From fd519748e9c828e03468dc61b331115f07b3fadd Mon Sep 17 00:00:00 2001
From: Justin Clark-Casey (justincc)
Date: Wed, 14 Aug 2013 19:35:02 +0100
Subject: Add method doc to Scene.RemoveClient() to ask any callers to use
Scene.IncomingCloseAgent() instead.
IncomingCloseAgent() now sets the scene presence state machine properly, which is necessary to avoid races between multiple sources of close.
Hence, it's also necessary for everyone to consistently call IncomingCloseAgent()
Calling RemoveClient() directly is currently generating an attention-grabbing exception though this right now this is harmless.
---
OpenSim/Region/Framework/Scenes/Scene.cs | 12 ++++++++++++
1 file changed, 12 insertions(+)
(limited to 'OpenSim/Region/Framework/Scenes/Scene.cs')
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index a3bd388..d187377 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -3382,6 +3382,18 @@ namespace OpenSim.Region.Framework.Scenes
}
}
+ ///
+ /// Remove the given client from the scene.
+ ///
+ ///
+ /// 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).
+ ///
+ /// ID of agent to close
+ ///
+ /// Close the neighbour child agents associated with this client.
+ ///
public override void RemoveClient(UUID agentID, bool closeChildAgents)
{
AgentCircuitData acd = m_authenticateHandler.GetAgentCircuitData(agentID);
--
cgit v1.1