From 36667aecf55f33fcbd4bf0c7c377110dc0503dff Mon Sep 17 00:00:00 2001 From: Jordan Dominion Date: Wed, 27 Dec 2023 08:32:59 -0500 Subject: [PATCH] If the server exits with code 0, don't call it a crash --- src/Tgstation.Server.Host/Components/Watchdog/BasicWatchdog.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tgstation.Server.Host/Components/Watchdog/BasicWatchdog.cs b/src/Tgstation.Server.Host/Components/Watchdog/BasicWatchdog.cs index 10b6a7b19c..8494cc9aeb 100644 --- a/src/Tgstation.Server.Host/Components/Watchdog/BasicWatchdog.cs +++ b/src/Tgstation.Server.Host/Components/Watchdog/BasicWatchdog.cs @@ -113,7 +113,7 @@ namespace Tgstation.Server.Host.Components.Watchdog switch (reason) { case MonitorActivationReason.ActiveServerCrashed: - var eventType = controller.TerminationWasRequested + var eventType = controller.TerminationWasRequested || (await controller.Lifetime) == 0 ? EventType.WorldEndProcess : EventType.WatchdogCrash; await HandleEventImpl(eventType, Enumerable.Empty(), false, cancellationToken);