aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services/Connectors/Asset/AssetServiceConnector.cs
diff options
context:
space:
mode:
authorUbitUmarov2012-07-11 21:10:46 +0100
committerUbitUmarov2012-07-11 21:10:46 +0100
commit065046845d7a4e8df524b0a4a0f175ebe3f4c4d9 (patch)
tree8692e909f0f67ca32d0c50dac9247cf497b6789b /OpenSim/Services/Connectors/Asset/AssetServiceConnector.cs
parent Replace a Multicast Delegate by a simple list of delegates in access Get (diff)
downloadopensim-SC-065046845d7a4e8df524b0a4a0f175ebe3f4c4d9.zip
opensim-SC-065046845d7a4e8df524b0a4a0f175ebe3f4c4d9.tar.gz
opensim-SC-065046845d7a4e8df524b0a4a0f175ebe3f4c4d9.tar.bz2
opensim-SC-065046845d7a4e8df524b0a4a0f175ebe3f4c4d9.tar.xz
be paranoic (?)
Diffstat (limited to 'OpenSim/Services/Connectors/Asset/AssetServiceConnector.cs')
-rw-r--r--OpenSim/Services/Connectors/Asset/AssetServiceConnector.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenSim/Services/Connectors/Asset/AssetServiceConnector.cs b/OpenSim/Services/Connectors/Asset/AssetServiceConnector.cs
index d8e0be4..45ebf3a 100644
--- a/OpenSim/Services/Connectors/Asset/AssetServiceConnector.cs
+++ b/OpenSim/Services/Connectors/Asset/AssetServiceConnector.cs
@@ -316,6 +316,8 @@ namespace OpenSim.Services.Connectors
316 } 316 }
317 foreach (AssetRetrievedEx h in handlers) 317 foreach (AssetRetrievedEx h in handlers)
318 h.Invoke(a); 318 h.Invoke(a);
319 if (handlers != null)
320 handlers.Clear();
319 }); 321 });
320 322
321 success = true; 323 success = true;
@@ -324,10 +326,14 @@ namespace OpenSim.Services.Connectors
324 { 326 {
325 if (!success) 327 if (!success)
326 { 328 {
329 List<AssetRetrievedEx> handlers;
327 lock (m_AssetHandlers) 330 lock (m_AssetHandlers)
328 { 331 {
332 handlers = m_AssetHandlers[id];
329 m_AssetHandlers.Remove(id); 333 m_AssetHandlers.Remove(id);
330 } 334 }
335 if (handlers != null)
336 handlers.Clear();
331 } 337 }
332 } 338 }
333 } 339 }