Simplify watchdog DisposeAsync

This commit is contained in:
Jordan Brown
2022-09-21 10:02:27 -04:00
parent 3a1c44c71e
commit c66e0907dc
@@ -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;