mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-27 07:04:57 +01:00
Fix setting reboot states
This commit is contained in:
@@ -593,7 +593,7 @@ namespace Tgstation.Server.Host.Components.Watchdog
|
||||
cancellationToken)
|
||||
.ConfigureAwait(false);
|
||||
|
||||
return result != null && result.ErrorMessage != null;
|
||||
return result != null && result.ErrorMessage == null;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
|
||||
@@ -512,7 +512,7 @@ namespace Tgstation.Server.Host.Components.Watchdog
|
||||
return;
|
||||
var toClear = GetActiveController();
|
||||
if (toClear != null)
|
||||
toClear.ResetRebootState();
|
||||
await toClear.SetRebootState(Watchdog.RebootState.Normal, cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user