mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-22 04:27:19 +01:00
Short-circuit Robust.Server exiting if possible
This commit is contained in:
@@ -137,6 +137,8 @@ namespace Tgstation.Server.Host.Components.Engine
|
||||
logger.LogTrace("Attempting Robust.Server graceful exit (Timeout: {seconds}s)...", MaximumTerminationSeconds);
|
||||
var timeout = asyncDelayer.Delay(TimeSpan.FromSeconds(MaximumTerminationSeconds), cancellationToken);
|
||||
var lifetime = process.Lifetime;
|
||||
if (lifetime.IsCompleted)
|
||||
logger.LogTrace("Robust.Server already exited");
|
||||
|
||||
var stopwatch = Stopwatch.StartNew();
|
||||
try
|
||||
|
||||
Reference in New Issue
Block a user