Conditional for mimicking the presence of the host watchdog

This commit is contained in:
Jordan Brown
2020-07-04 12:25:15 -04:00
parent 027392609a
commit 0740fcc564
+6 -1
View File
@@ -21,7 +21,12 @@ namespace Tgstation.Server.Host
public bool RestartRequested { get; private set; }
/// <inheritdoc />
public bool WatchdogPresent => updatePath != null;
public bool WatchdogPresent =>
#if WATCHDOG_FREE_RESTART
true;
#else
updatePath != null;
#endif
/// <summary>
/// The <see cref="IHostBuilder"/> for the <see cref="Server"/>