aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/Scene.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2013-08-14 19:35:02 +0100
committerJustin Clark-Casey (justincc)2013-08-14 19:36:52 +0100
commitfd519748e9c828e03468dc61b331115f07b3fadd (patch)
tree3c47085c6a0030df138e3ea6b4517d80cc8c6ee6 /OpenSim/Region/Framework/Scenes/Scene.cs
parentShutdown a bot's actions by making it check for disconnecting state rather th... (diff)
downloadopensim-SC-fd519748e9c828e03468dc61b331115f07b3fadd.zip
opensim-SC-fd519748e9c828e03468dc61b331115f07b3fadd.tar.gz
opensim-SC-fd519748e9c828e03468dc61b331115f07b3fadd.tar.bz2
opensim-SC-fd519748e9c828e03468dc61b331115f07b3fadd.tar.xz
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.
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Scene.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.cs12
1 files changed, 12 insertions, 0 deletions
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
3382 } 3382 }
3383 } 3383 }
3384 3384
3385 /// <summary>
3386 /// Remove the given client from the scene.
3387 /// </summary>
3388 /// <remarks>
3389 /// Only clientstack code should call this directly. All other code should call IncomingCloseAgent() instead
3390 /// to properly operate the state machine and avoid race conditions with other close requests (such as directly
3391 /// from viewers).
3392 /// </remarks>
3393 /// <param name='agentID'>ID of agent to close</param>
3394 /// <param name='closeChildAgents'>
3395 /// Close the neighbour child agents associated with this client.
3396 /// </param>
3385 public override void RemoveClient(UUID agentID, bool closeChildAgents) 3397 public override void RemoveClient(UUID agentID, bool closeChildAgents)
3386 { 3398 {
3387 AgentCircuitData acd = m_authenticateHandler.GetAgentCircuitData(agentID); 3399 AgentCircuitData acd = m_authenticateHandler.GetAgentCircuitData(agentID);