diff options
author | Justin Clark-Casey (justincc) | 2013-05-16 17:12:02 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2013-05-16 17:12:02 +0100 |
commit | d214e2d0c4b8e1ea5e0d69e2ba94cd668be610bd (patch) | |
tree | 046555d177672b30b903716662c32f577eea7c80 /OpenSim/Region/Framework/Scenes/ScenePresence.cs | |
parent | On logout, send close child agent requests to neighbours asynchronously, so u... (diff) | |
download | opensim-SC_OLD-d214e2d0c4b8e1ea5e0d69e2ba94cd668be610bd.zip opensim-SC_OLD-d214e2d0c4b8e1ea5e0d69e2ba94cd668be610bd.tar.gz opensim-SC_OLD-d214e2d0c4b8e1ea5e0d69e2ba94cd668be610bd.tar.bz2 opensim-SC_OLD-d214e2d0c4b8e1ea5e0d69e2ba94cd668be610bd.tar.xz |
On closing child agents, send separate asynchronous requests to each neighbour rather than sending all closes concurrently on a separate thread.
This is to reduce race conditions where neighbours may be responding erratically, thus mixing up create and close agent requests in time.
This mirrors OpenSimulator behaviour on enabling child agents where each region is contacted separately.
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/ScenePresence.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/ScenePresence.cs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index 2a265db..9e9089b 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs | |||
@@ -3135,10 +3135,8 @@ namespace OpenSim.Region.Framework.Scenes | |||
3135 | if (byebyeRegions.Count > 0) | 3135 | if (byebyeRegions.Count > 0) |
3136 | { | 3136 | { |
3137 | m_log.Debug("[SCENE PRESENCE]: Closing " + byebyeRegions.Count + " child agents"); | 3137 | m_log.Debug("[SCENE PRESENCE]: Closing " + byebyeRegions.Count + " child agents"); |
3138 | Util.FireAndForget(delegate | 3138 | |
3139 | { | 3139 | m_scene.SceneGridService.SendCloseChildAgentConnections(ControllingClient.AgentId, byebyeRegions); |
3140 | m_scene.SceneGridService.SendCloseChildAgentConnections(ControllingClient.AgentId, byebyeRegions); | ||
3141 | }); | ||
3142 | } | 3140 | } |
3143 | 3141 | ||
3144 | foreach (ulong handle in byebyeRegions) | 3142 | foreach (ulong handle in byebyeRegions) |