mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-29 08:00:19 +01:00
Simplify watchdog DisposeAsync
This commit is contained in:
@@ -244,9 +244,7 @@ namespace Tgstation.Server.Host.Components.Watchdog
|
||||
synchronizationSemaphore.Dispose();
|
||||
restartRegistration.Dispose();
|
||||
|
||||
// DCT: None available, Operation must always run
|
||||
releaseServers = false; // Server release should have been handled in StopAsync, this causes a DB access that can create ObjectDisposedExceptions
|
||||
await DisposeAndNullControllers(default);
|
||||
await DisposeAndNullControllersImpl();
|
||||
controllerDisposeSemaphore.Dispose();
|
||||
monitorCts?.Dispose();
|
||||
disposed = true;
|
||||
|
||||
Reference in New Issue
Block a user