mirror of
https://github.com/chylex/Discord-History-Tracker.git
synced 2025-06-08 19:32:26 +03:00
Fix not fully disposing internal app server when stopped
This commit is contained in:
parent
58259c0bb4
commit
1bddde7ccd
@ -93,11 +93,12 @@ namespace DHT.Server.Service {
|
|||||||
if (Server != null) {
|
if (Server != null) {
|
||||||
Log.Info("Stopping server...");
|
Log.Info("Stopping server...");
|
||||||
Server.StopAsync().Wait();
|
Server.StopAsync().Wait();
|
||||||
|
Server.Dispose();
|
||||||
|
Server = null;
|
||||||
|
|
||||||
Log.Info("Server stopped");
|
Log.Info("Server stopped");
|
||||||
IsRunning = false;
|
IsRunning = false;
|
||||||
ServerStatusChanged?.Invoke(null, EventArgs.Empty);
|
ServerStatusChanged?.Invoke(null, EventArgs.Empty);
|
||||||
Server = null;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user