Amend to last commit: synchronize access to queues.

xassetservice
Diva Canto 2012-02-20 11:12:02 -08:00
parent 99b9c1a9d5
commit 4a329098e8
1 changed files with 5 additions and 2 deletions

View File

@ -215,8 +215,11 @@ namespace OpenSim.Services.Connectors.Simulation
} }
// we get here iff success == false // we get here iff success == false
// blacklist sim for 2 minutes // blacklist sim for 2 minutes
lock (m_updateAgentQueue)
{
_failedSims.AddOrUpdate(destination.ServerURI, true, 120); _failedSims.AddOrUpdate(destination.ServerURI, true, 120);
m_updateAgentQueue.Clear(); m_updateAgentQueue.Remove(uri);
}
return false; return false;
} }