mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-30 00:22:40 +01:00
Make a null check less redundant
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user