From 084e48f9f6983889aab782017262740e006ffbd8 Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Wed, 25 Mar 2020 13:28:37 -0400 Subject: [PATCH] Fix IServerControl.Die() requiring a host watchdog --- src/Tgstation.Server.Host/Server.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Tgstation.Server.Host/Server.cs b/src/Tgstation.Server.Host/Server.cs index 7dcf93d719..db4c74f7bc 100644 --- a/src/Tgstation.Server.Host/Server.cs +++ b/src/Tgstation.Server.Host/Server.cs @@ -202,7 +202,7 @@ namespace Tgstation.Server.Host throw; } - await Restart(version, null).ConfigureAwait(false); + await Restart(version, null, true).ConfigureAwait(false); } catch (OperationCanceledException) { @@ -247,15 +247,16 @@ namespace Tgstation.Server.Host } /// - public Task Restart() => Restart(null, null); + public Task Restart() => Restart(null, null, true); /// /// Implements /// /// The of any potential updates being applied /// The potential value of + /// If the host watchdog is required for this "restart". /// A representing the running operation - async Task Restart(Version newVersion, Exception exception) + async Task Restart(Version newVersion, Exception exception, bool requireWatchdog) { CheckSanity(true); @@ -300,6 +301,6 @@ namespace Tgstation.Server.Host } /// - public Task Die(Exception exception) => Restart(null, exception); + public Task Die(Exception exception) => Restart(null, exception, false); } }