mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-25 22:17:51 +01:00
Correct overzealous watchdog restarts
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user