mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-24 21:46:52 +01:00
Fixes crashes not being written to the resource diagnostics file
This commit is contained in:
@@ -286,7 +286,8 @@ namespace TGServerService
|
||||
pcpu.Dispose();
|
||||
}
|
||||
|
||||
bool BadStart;
|
||||
WriteCurrentDDLog("Crash detected!");
|
||||
|
||||
lock (watchdogLock)
|
||||
{
|
||||
currentStatus = TGDreamDaemonStatus.HardRebooting;
|
||||
@@ -295,7 +296,7 @@ namespace TGServerService
|
||||
|
||||
if (AwaitingShutdown == ShutdownRequestPhase.Pinged)
|
||||
return;
|
||||
BadStart = (DateTime.Now - starttime).TotalSeconds < DDBadStartTime;
|
||||
var BadStart = (DateTime.Now - starttime).TotalSeconds < DDBadStartTime;
|
||||
if (BadStart)
|
||||
{
|
||||
++retries;
|
||||
@@ -311,8 +312,6 @@ namespace TGServerService
|
||||
TGServerService.WriteWarning(msg, TGServerService.EventID.DDWatchdogRebootingServer);
|
||||
}
|
||||
}
|
||||
if (BadStart)
|
||||
WriteCurrentDDLog("Crash detected!");
|
||||
|
||||
var res = StartImpl(true);
|
||||
if (res != null)
|
||||
|
||||
Reference in New Issue
Block a user