mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 01:35:46 +08:00
In TerrainModule, lock m_perClientPatchUpdates when removing entries.
This may have been the trigger CheckSendingPatchesToClients() dictionary out of sync exceptions in today's load test. Don't need to check ContainsKey() since Remove() returns false on a request to remove a key that it doesn't have
This commit is contained in:
@@ -873,10 +873,9 @@ namespace OpenSim.Region.CoreModules.World.Terrain
|
||||
presence.ControllingClient.OnLandUndo -= client_OnLandUndo;
|
||||
presence.ControllingClient.OnUnackedTerrain -= client_OnUnackedTerrain;
|
||||
}
|
||||
if (m_perClientPatchUpdates.ContainsKey(client))
|
||||
{
|
||||
|
||||
lock (m_perClientPatchUpdates)
|
||||
m_perClientPatchUpdates.Remove(client);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user