mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-23 04:57:17 +01:00
Add a check to watchdog detach failure
This commit is contained in:
@@ -923,7 +923,17 @@ namespace Tgstation.Server.Host.Components.Watchdog
|
||||
await TerminateNoLock(false, !releaseServers, cancellationToken).ConfigureAwait(false);
|
||||
if (releasedReattachInformation != null)
|
||||
{
|
||||
await sessionPersistor.Save(releasedReattachInformation, cancellationToken).ConfigureAwait(false);
|
||||
try
|
||||
{
|
||||
await sessionPersistor.Save(releasedReattachInformation, cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Logger.LogCritical(
|
||||
"Failed to persist session reattach information! To repair this, DreamDaemon will need to be manully stopped and then relaunched with TGS. Exception: {0}",
|
||||
ex);
|
||||
}
|
||||
|
||||
releasedReattachInformation = null;
|
||||
releaseServers = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user