diff options
author | Diva Canto | 2012-02-20 11:12:02 -0800 |
---|---|---|
committer | Diva Canto | 2012-02-20 11:12:02 -0800 |
commit | 4a329098e8eba012cbf9f66627443968cbf9d726 (patch) | |
tree | 2fee031385e113c98ed39a1a69c0ee4ce7827070 | |
parent | More improvements on agent position updates: if the target sims fail, blackli... (diff) | |
download | opensim-SC-4a329098e8eba012cbf9f66627443968cbf9d726.zip opensim-SC-4a329098e8eba012cbf9f66627443968cbf9d726.tar.gz opensim-SC-4a329098e8eba012cbf9f66627443968cbf9d726.tar.bz2 opensim-SC-4a329098e8eba012cbf9f66627443968cbf9d726.tar.xz |
Amend to last commit: synchronize access to queues.
-rw-r--r-- | OpenSim/Services/Connectors/Simulation/SimulationServiceConnector.cs | 7 |
1 files changed, 5 insertions, 2 deletions
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 | |||
215 | } | 215 | } |
216 | // we get here iff success == false | 216 | // we get here iff success == false |
217 | // blacklist sim for 2 minutes | 217 | // blacklist sim for 2 minutes |
218 | _failedSims.AddOrUpdate(destination.ServerURI, true, 120); | 218 | lock (m_updateAgentQueue) |
219 | m_updateAgentQueue.Clear(); | 219 | { |
220 | _failedSims.AddOrUpdate(destination.ServerURI, true, 120); | ||
221 | m_updateAgentQueue.Remove(uri); | ||
222 | } | ||
220 | return false; | 223 | return false; |
221 | } | 224 | } |
222 | 225 | ||