mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-30 08:33:19 +01:00
Fix watchdog detach event not being sent to DMAPI
This commit is contained in:
@@ -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 />
|
||||
|
||||
Reference in New Issue
Block a user