From dcc55170b69fb8ef32626ee3a5285762c6bc968b Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Tue, 28 Apr 2020 09:59:44 -0400 Subject: [PATCH] Remove rogue Debug.Assert --- .../Components/Watchdog/WatchdogBase.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Tgstation.Server.Host/Components/Watchdog/WatchdogBase.cs b/src/Tgstation.Server.Host/Components/Watchdog/WatchdogBase.cs index 3262a914a6..f117799e17 100644 --- a/src/Tgstation.Server.Host/Components/Watchdog/WatchdogBase.cs +++ b/src/Tgstation.Server.Host/Components/Watchdog/WatchdogBase.cs @@ -3,7 +3,6 @@ using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Logging; using System; using System.Collections.Generic; -using System.Diagnostics; using System.Linq; using System.Threading; using System.Threading.Tasks; @@ -216,8 +215,6 @@ namespace Tgstation.Server.Host.Components.Watchdog Semaphore.Dispose(); restartRegistration.Dispose(); DisposeAndNullControllers(); - - Debug.Assert(monitorCts == null, "Expected monitorCts to be null!"); monitorCts?.Dispose(); } @@ -258,7 +255,7 @@ namespace Tgstation.Server.Host.Components.Watchdog /// A representing the running operation protected async Task LaunchImplNoLock(bool startMonitor, bool announce, WatchdogReattachInformation reattachInfo, CancellationToken cancellationToken) { - Logger.LogTrace("Begin LaunchNoLock"); + Logger.LogTrace("Begin LaunchImplNoLock"); if (Running) throw new JobException(ErrorCode.WatchdogRunning);