dont give a ring to each asset request, just one to rule them all, i mean

thread not ring
avinationmerge
UbitUmarov 2014-09-18 19:40:59 +01:00
parent 6e015125c5
commit f35f90bd72
1 changed files with 16 additions and 9 deletions

View File

@ -328,18 +328,25 @@ namespace OpenSim.Services.Connectors
m_AssetHandlers.Remove(id); m_AssetHandlers.Remove(id);
} }
foreach (AssetRetrievedEx h in handlers)
{
Util.FireAndForget(x => Util.FireAndForget(x =>
{ {
foreach (AssetRetrievedEx h in handlers)
{
// Util.FireAndForget(x =>
// {
try { h.Invoke(a); } try { h.Invoke(a); }
catch { } catch { }
}); // });
} }
if (handlers != null) if (handlers != null)
handlers.Clear(); handlers.Clear();
});
// if (handlers != null)
// handlers.Clear();
success = true; success = true;
} }
} }