mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 08:55:56 +08:00
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.
This commit is contained in:
@@ -222,9 +222,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
public void SendCloseChildAgentConnections(UUID agentID, List<ulong> regionslst)
|
||||
{
|
||||
foreach (ulong handle in regionslst)
|
||||
{
|
||||
SendCloseChildAgent(agentID, handle);
|
||||
}
|
||||
Util.FireAndForget(delegate { SendCloseChildAgent(agentID, handle); });
|
||||
}
|
||||
|
||||
public List<GridRegion> RequestNamedRegions(string name, int maxNumber)
|
||||
|
||||
Reference in New Issue
Block a user