aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorDiva Canto2011-12-16 17:24:50 -0800
committerDiva Canto2011-12-16 17:24:50 -0800
commit964ec57ffe5ce2e9feac4295ade9cc4a5a223d69 (patch)
tree7f95b03cc9e2fec622147b7db8e79a79ed53fc8a /OpenSim
parentCommented a couple of verbose debug messages. (diff)
downloadopensim-SC_OLD-964ec57ffe5ce2e9feac4295ade9cc4a5a223d69.zip
opensim-SC_OLD-964ec57ffe5ce2e9feac4295ade9cc4a5a223d69.tar.gz
opensim-SC_OLD-964ec57ffe5ce2e9feac4295ade9cc4a5a223d69.tar.bz2
opensim-SC_OLD-964ec57ffe5ce2e9feac4295ade9cc4a5a223d69.tar.xz
Changed the async approach on close child agents. This may improve crossings a little bit.
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneCommunicationService.cs9
-rw-r--r--OpenSim/Region/Framework/Scenes/ScenePresence.cs5
2 files changed, 7 insertions, 7 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneCommunicationService.cs b/OpenSim/Region/Framework/Scenes/SceneCommunicationService.cs
index d76ed3e..58a7b20 100644
--- a/OpenSim/Region/Framework/Scenes/SceneCommunicationService.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneCommunicationService.cs
@@ -204,13 +204,10 @@ namespace OpenSim.Region.Framework.Scenes
204 /// <param name="regionslst"></param> 204 /// <param name="regionslst"></param>
205 public void SendCloseChildAgentConnections(UUID agentID, List<ulong> regionslst) 205 public void SendCloseChildAgentConnections(UUID agentID, List<ulong> regionslst)
206 { 206 {
207 Util.FireAndForget(delegate 207 foreach (ulong handle in regionslst)
208 { 208 {
209 foreach (ulong handle in regionslst) 209 SendCloseChildAgent(agentID, handle);
210 { 210 }
211 SendCloseChildAgent(agentID, handle);
212 }
213 });
214 } 211 }
215 212
216 public List<GridRegion> RequestNamedRegions(string name, int maxNumber) 213 public List<GridRegion> RequestNamedRegions(string name, int maxNumber)
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
index 800b7e0..b16eaba 100644
--- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
@@ -2955,7 +2955,10 @@ namespace OpenSim.Region.Framework.Scenes
2955 if (byebyeRegions.Count > 0) 2955 if (byebyeRegions.Count > 0)
2956 { 2956 {
2957 m_log.Debug("[SCENE PRESENCE]: Closing " + byebyeRegions.Count + " child agents"); 2957 m_log.Debug("[SCENE PRESENCE]: Closing " + byebyeRegions.Count + " child agents");
2958 m_scene.SceneGridService.SendCloseChildAgentConnections(ControllingClient.AgentId, byebyeRegions); 2958 Util.FireAndForget(delegate
2959 {
2960 m_scene.SceneGridService.SendCloseChildAgentConnections(ControllingClient.AgentId, byebyeRegions);
2961 });
2959 } 2962 }
2960 2963
2961 foreach (ulong handle in byebyeRegions) 2964 foreach (ulong handle in byebyeRegions)