mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-23 13:07:07 +01:00
If the server exits with code 0, don't call it a crash
This commit is contained in:
@@ -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<string>(), false, cancellationToken);
|
||||
|
||||
Reference in New Issue
Block a user