Fix detaching message showing twice

This commit is contained in:
Jordan Brown
2018-09-25 21:57:28 -04:00
parent 2be826d16e
commit 021f6e6f0f
@@ -863,7 +863,6 @@ namespace Tgstation.Server.Host.Components.Watchdog
{
if (releaseServers && Running)
{
var chatTask = chat.SendWatchdogMessage("Detaching...", cancellationToken);
await StopMonitor().ConfigureAwait(false);
var reattachInformation = new WatchdogReattachInformation
@@ -873,7 +872,6 @@ namespace Tgstation.Server.Host.Components.Watchdog
reattachInformation.Alpha = alphaServer?.Release();
reattachInformation.Bravo = bravoServer?.Release();
await reattachInfoHandler.Save(reattachInformation, cancellationToken).ConfigureAwait(false);
await chatTask.ConfigureAwait(false);
}
await Terminate(false, cancellationToken).ConfigureAwait(false);
}