1
0
mirror of https://github.com/chylex/Minecraft-Phantom-Panel.git synced 2025-05-09 14:34:10 +02:00

Reduce the minimum number of thread pool threads in Agent

This commit is contained in:
chylex 2023-03-05 06:36:27 +01:00
parent 2c413160f6
commit f5b40a92e2
Signed by: chylex
GPG Key ID: 4DE42C8F19A80548

View File

@ -17,6 +17,8 @@ PosixSignals.RegisterCancellation(shutdownCancellationTokenSource, static () =>
PhantomLogger.Root.InformationHeading("Stopping Phantom Panel agent...");
});
ThreadPool.SetMinThreads(workerThreads: 2, completionPortThreads: 1);
try {
var fullVersion = AssemblyAttributes.GetFullVersion(Assembly.GetExecutingAssembly());