Fix setting reboot states

This commit is contained in:
Jordan Brown
2020-05-05 01:03:12 -04:00
parent 0a5f34e3d5
commit 26938c3afa
2 changed files with 2 additions and 2 deletions
@@ -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);
}
}