mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
Changed the async approach on close child agents. This may improve crossings a little bit.
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user