diff options
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Services/Connectors/Asset/AssetServiceConnector.cs | 6 |
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 | } |