1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-05 02:22:31 +01:00

Revert "Force min 4 threads in pool"

This reverts commit 789e47dfff.
This commit is contained in:
Qstick 2020-05-24 14:19:27 -04:00
parent 70601faa4f
commit 4951a97984

View File

@ -1,6 +1,4 @@
using System;
using System.ServiceProcess; using System.ServiceProcess;
using System.Threading;
using NLog; using NLog;
using NzbDrone.Common.Composition; using NzbDrone.Common.Composition;
using NzbDrone.Common.EnvironmentInfo; using NzbDrone.Common.EnvironmentInfo;
@ -91,9 +89,6 @@ public void Start()
//_cancelHandler = new CancelHandler(); //_cancelHandler = new CancelHandler();
} }
ThreadPool.GetMinThreads(out var minWorker, out var minIOC);
ThreadPool.SetMinThreads(Math.Max(4, minWorker), Math.Max(4, minIOC));
_runtimeInfo.IsExiting = false; _runtimeInfo.IsExiting = false;
DbFactory.RegisterDatabase(_container); DbFactory.RegisterDatabase(_container);
_hostController.StartServer(); _hostController.StartServer();