Correct overzealous watchdog restarts

This commit is contained in:
Jordan Dominion
2023-11-19 17:15:37 -05:00
parent 70edd0a01f
commit f4a4e0868f
2 changed files with 2 additions and 5 deletions
@@ -289,11 +289,7 @@ namespace Tgstation.Server.Host.Components.Watchdog
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the operation.</param>
/// <returns>A <see cref="ValueTask{TResult}"/> resulting in the <see cref="MonitorAction"/> to take.</returns>
protected virtual ValueTask<MonitorAction> HandleNormalReboot(CancellationToken cancellationToken)
{
var settingsUpdatePending = ActiveLaunchParameters != LastLaunchParameters;
var result = settingsUpdatePending ? MonitorAction.Restart : MonitorAction.Continue;
return ValueTask.FromResult(result);
}
=> ValueTask.FromResult(MonitorAction.Continue);
/// <summary>
/// Handler for <see cref="MonitorActivationReason.NewDmbAvailable"/>.
@@ -37,6 +37,7 @@ namespace Tgstation.Server.Host.Components.Watchdog
/// <summary>
/// The <see cref="DreamDaemonLaunchParameters"/> the active server is using.
/// </summary>
/// <remarks>This may not be the exact same as <see cref="ActiveLaunchParameters"/> but still be associated with the same session.</remarks>
DreamDaemonLaunchParameters LastLaunchParameters { get; }
/// <summary>