mirror of
https://github.com/chylex/Discord-History-Tracker.git
synced 2025-06-17 23:51:39 +03:00
Add name to server management thread
This commit is contained in:
parent
8002236c1f
commit
4bc9626013
@ -12,7 +12,7 @@ using Microsoft.Extensions.DependencyInjection;
|
|||||||
namespace DHT.Server.Service {
|
namespace DHT.Server.Service {
|
||||||
public static class ServerLauncher {
|
public static class ServerLauncher {
|
||||||
private static readonly Log Log = Log.ForType(typeof(ServerLauncher));
|
private static readonly Log Log = Log.ForType(typeof(ServerLauncher));
|
||||||
|
|
||||||
private static IWebHost? Server { get; set; } = null;
|
private static IWebHost? Server { get; set; } = null;
|
||||||
|
|
||||||
public static bool IsRunning { get; private set; }
|
public static bool IsRunning { get; private set; }
|
||||||
@ -29,6 +29,7 @@ namespace DHT.Server.Service {
|
|||||||
try {
|
try {
|
||||||
if (ManagementThread == null) {
|
if (ManagementThread == null) {
|
||||||
ManagementThread = new Thread(RunManagementThread) {
|
ManagementThread = new Thread(RunManagementThread) {
|
||||||
|
Name = "DHT server management thread",
|
||||||
IsBackground = true
|
IsBackground = true
|
||||||
};
|
};
|
||||||
ManagementThread.Start();
|
ManagementThread.Start();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user