From f35f90bd7289598d6209d6b1de6222aff600dff5 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Thu, 18 Sep 2014 19:40:59 +0100 Subject: dont give a ring to each asset request, just one to rule them all, i mean thread not ring --- .../Connectors/Asset/AssetServicesConnector.cs | 23 ++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) (limited to 'OpenSim/Services/Connectors/Asset/AssetServicesConnector.cs') diff --git a/OpenSim/Services/Connectors/Asset/AssetServicesConnector.cs b/OpenSim/Services/Connectors/Asset/AssetServicesConnector.cs index 9b0ebcf..2c1d946 100644 --- a/OpenSim/Services/Connectors/Asset/AssetServicesConnector.cs +++ b/OpenSim/Services/Connectors/Asset/AssetServicesConnector.cs @@ -328,17 +328,24 @@ namespace OpenSim.Services.Connectors m_AssetHandlers.Remove(id); } - foreach (AssetRetrievedEx h in handlers) - { - Util.FireAndForget(x => + Util.FireAndForget(x => { - try { h.Invoke(a); } - catch { } + foreach (AssetRetrievedEx h in handlers) + { + // Util.FireAndForget(x => + // { + try { h.Invoke(a); } + catch { } + // }); + } + + if (handlers != null) + handlers.Clear(); + }); - } - if (handlers != null) - handlers.Clear(); +// if (handlers != null) +// handlers.Clear(); success = true; } -- cgit v1.1