diff options
author | Diva Canto | 2012-02-20 11:12:02 -0800 |
---|---|---|
committer | Diva Canto | 2012-02-20 11:13:02 -0800 |
commit | 3259b1d1e0d6dedc6b56129062cf0d17b6b278b8 (patch) | |
tree | ec2078ce7367d7d864ab9673b6afeaff23453f53 /OpenSim/Services/Connectors/Simulation/SimulationServiceConnector.cs | |
parent | More improvements on agent position updates: if the target sims fail, blackli... (diff) | |
download | opensim-SC_OLD-3259b1d1e0d6dedc6b56129062cf0d17b6b278b8.zip opensim-SC_OLD-3259b1d1e0d6dedc6b56129062cf0d17b6b278b8.tar.gz opensim-SC_OLD-3259b1d1e0d6dedc6b56129062cf0d17b6b278b8.tar.bz2 opensim-SC_OLD-3259b1d1e0d6dedc6b56129062cf0d17b6b278b8.tar.xz |
Amend to last commit: synchronize access to queues.
Diffstat (limited to '')
-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 | ||