Fix watchdog detach event not being sent to DMAPI

This commit is contained in:
Cyberboss
2020-05-31 16:28:00 -04:00
parent e24b45bbb1
commit 1d561dc542
@@ -904,14 +904,9 @@ namespace Tgstation.Server.Host.Components.Watchdog
/// <inheritdoc />
public async Task StopAsync(CancellationToken cancellationToken)
{
if (releaseServers)
{
await StopMonitor().ConfigureAwait(false);
if (releasedReattachInformation != null)
await reattachInfoHandler.Save(releasedReattachInformation, cancellationToken).ConfigureAwait(false);
}
await TerminateNoLock(false, !releaseServers, cancellationToken).ConfigureAwait(false);
if (releasedReattachInformation != null)
await reattachInfoHandler.Save(releasedReattachInformation, cancellationToken).ConfigureAwait(false);
}
/// <inheritdoc />