From 060984502eeabb59cade86e5e2b27db888229db3 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Wed, 17 Sep 2014 17:00:13 +0100 Subject: and another one --- OpenSim/Services/Connectors/Asset/AssetServicesConnector.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'OpenSim') diff --git a/OpenSim/Services/Connectors/Asset/AssetServicesConnector.cs b/OpenSim/Services/Connectors/Asset/AssetServicesConnector.cs index bf0cc35..9b0ebcf 100644 --- a/OpenSim/Services/Connectors/Asset/AssetServicesConnector.cs +++ b/OpenSim/Services/Connectors/Asset/AssetServicesConnector.cs @@ -284,9 +284,11 @@ namespace OpenSim.Services.Connectors byte[] ret = new byte[s.Length]; s.Read(ret, 0, (int)s.Length); + s.Close(); return ret; } + s.Close(); return null; } @@ -325,13 +327,16 @@ namespace OpenSim.Services.Connectors handlers = m_AssetHandlers[id]; m_AssetHandlers.Remove(id); } + foreach (AssetRetrievedEx h in handlers) { Util.FireAndForget(x => { - h.Invoke(a); + try { h.Invoke(a); } + catch { } }); } + if (handlers != null) handlers.Clear(); -- cgit v1.1