From e5377eb839fe9edecae4063a823ff8bf10768b1c Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Thu, 25 May 2017 04:51:45 +0100 Subject: [PATCH] use threads from main pool on assetsconnector --- OpenSim/Framework/Util.cs | 1 - OpenSim/Services/Connectors/Asset/AssetServicesConnector.cs | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/OpenSim/Framework/Util.cs b/OpenSim/Framework/Util.cs index 3342df3a93..5eedd2900b 100644 --- a/OpenSim/Framework/Util.cs +++ b/OpenSim/Framework/Util.cs @@ -2579,7 +2579,6 @@ namespace OpenSim.Framework } catch (ThreadAbortException e) { - m_log.Error(string.Format("Aborted threadfunc {0} ", threadFuncNum), e); } catch (Exception e) { diff --git a/OpenSim/Services/Connectors/Asset/AssetServicesConnector.cs b/OpenSim/Services/Connectors/Asset/AssetServicesConnector.cs index 62d13fcae3..2deb2d1100 100644 --- a/OpenSim/Services/Connectors/Asset/AssetServicesConnector.cs +++ b/OpenSim/Services/Connectors/Asset/AssetServicesConnector.cs @@ -135,9 +135,7 @@ namespace OpenSim.Services.Connectors for (int i = 0 ; i < 2 ; i++) { - m_fetchThreads[i] = new Thread(AssetRequestProcessor); - m_fetchThreads[i].IsBackground = true; - m_fetchThreads[i].Start(); + Util.FireAndForget(delegate { AssetRequestProcessor();}); } }