Changed the async approach on close child agents. This may improve crossings a little bit.

iar_mods
Diva Canto 2011-12-16 17:24:50 -08:00
parent 99623894c7
commit 964ec57ffe
2 changed files with 7 additions and 7 deletions

View File

@ -204,13 +204,10 @@ namespace OpenSim.Region.Framework.Scenes
/// <param name="regionslst"></param>
public void SendCloseChildAgentConnections(UUID agentID, List<ulong> regionslst)
{
Util.FireAndForget(delegate
foreach (ulong handle in regionslst)
{
foreach (ulong handle in regionslst)
{
SendCloseChildAgent(agentID, handle);
}
});
SendCloseChildAgent(agentID, handle);
}
}
public List<GridRegion> RequestNamedRegions(string name, int maxNumber)

View File

@ -2955,7 +2955,10 @@ namespace OpenSim.Region.Framework.Scenes
if (byebyeRegions.Count > 0)
{
m_log.Debug("[SCENE PRESENCE]: Closing " + byebyeRegions.Count + " child agents");
m_scene.SceneGridService.SendCloseChildAgentConnections(ControllingClient.AgentId, byebyeRegions);
Util.FireAndForget(delegate
{
m_scene.SceneGridService.SendCloseChildAgentConnections(ControllingClient.AgentId, byebyeRegions);
});
}
foreach (ulong handle in byebyeRegions)