Add name to server management thread

This commit is contained in:
chylex 2022-03-05 13:34:31 +01:00
parent 8002236c1f
commit 4bc9626013
No known key found for this signature in database
GPG Key ID: 4DE42C8F19A80548

View File

@ -12,7 +12,7 @@ using Microsoft.Extensions.DependencyInjection;
namespace DHT.Server.Service {
public static class ServerLauncher {
private static readonly Log Log = Log.ForType(typeof(ServerLauncher));
private static IWebHost? Server { get; set; } = null;
public static bool IsRunning { get; private set; }
@ -29,6 +29,7 @@ namespace DHT.Server.Service {
try {
if (ManagementThread == null) {
ManagementThread = new Thread(RunManagementThread) {
Name = "DHT server management thread",
IsBackground = true
};
ManagementThread.Start();