From 3259b1d1e0d6dedc6b56129062cf0d17b6b278b8 Mon Sep 17 00:00:00 2001 From: Diva Canto Date: Mon, 20 Feb 2012 11:12:02 -0800 Subject: Amend to last commit: synchronize access to queues. --- .../Services/Connectors/Simulation/SimulationServiceConnector.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'OpenSim/Services') diff --git a/OpenSim/Services/Connectors/Simulation/SimulationServiceConnector.cs b/OpenSim/Services/Connectors/Simulation/SimulationServiceConnector.cs index c45e312..65f01b3 100644 --- a/OpenSim/Services/Connectors/Simulation/SimulationServiceConnector.cs +++ b/OpenSim/Services/Connectors/Simulation/SimulationServiceConnector.cs @@ -215,8 +215,11 @@ namespace OpenSim.Services.Connectors.Simulation } // we get here iff success == false // blacklist sim for 2 minutes - _failedSims.AddOrUpdate(destination.ServerURI, true, 120); - m_updateAgentQueue.Clear(); + lock (m_updateAgentQueue) + { + _failedSims.AddOrUpdate(destination.ServerURI, true, 120); + m_updateAgentQueue.Remove(uri); + } return false; } -- cgit v1.1