be paranoic (?)

avinationmerge
UbitUmarov 2012-07-11 21:10:46 +01:00
parent 236b5a0298
commit 065046845d
1 changed files with 6 additions and 0 deletions

View File

@ -316,6 +316,8 @@ namespace OpenSim.Services.Connectors
}
foreach (AssetRetrievedEx h in handlers)
h.Invoke(a);
if (handlers != null)
handlers.Clear();
});
success = true;
@ -324,10 +326,14 @@ namespace OpenSim.Services.Connectors
{
if (!success)
{
List<AssetRetrievedEx> handlers;
lock (m_AssetHandlers)
{
handlers = m_AssetHandlers[id];
m_AssetHandlers.Remove(id);
}
if (handlers != null)
handlers.Clear();
}
}
}