From 076a6358db27b24d4cd09c5a30453969dff018db Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Wed, 19 Aug 2020 11:52:50 -0400 Subject: [PATCH] Make a null check less redundant --- .../Components/Watchdog/BasicWatchdog.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Tgstation.Server.Host/Components/Watchdog/BasicWatchdog.cs b/src/Tgstation.Server.Host/Components/Watchdog/BasicWatchdog.cs index cd4124d315..9f1c7f7eaa 100644 --- a/src/Tgstation.Server.Host/Components/Watchdog/BasicWatchdog.cs +++ b/src/Tgstation.Server.Host/Components/Watchdog/BasicWatchdog.cs @@ -205,9 +205,6 @@ namespace Tgstation.Server.Host.Components.Watchdog // retrieve the session controller Server = await serverLaunchTask.ConfigureAwait(false); - // failed reattaches will return null - Server?.SetHighPriority(); - // possiblity of null servers due to failed reattaches if (Server == null) { @@ -218,6 +215,8 @@ namespace Tgstation.Server.Host.Components.Watchdog return; } + Server.SetHighPriority(); + await CheckLaunchResult(Server, "Server", cancellationToken).ConfigureAwait(false); Server.EnableCustomChatCommands();