mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-30 00:22:40 +01:00
Fix LaunchResult not completing if the process dies
This commit is contained in:
@@ -304,7 +304,7 @@ namespace Tgstation.Server.Host.Components.Session
|
||||
var startupTask = !reattached && (apiValidate || DMApiAvailable)
|
||||
? initialBridgeRequestTcs.Task
|
||||
: process.Startup;
|
||||
var toAwait = startupTask;
|
||||
var toAwait = Task.WhenAny(startupTask, process.Lifetime);
|
||||
|
||||
if (startupTimeout.HasValue)
|
||||
toAwait = Task.WhenAny(toAwait, Task.Delay(startTime.AddSeconds(startupTimeout.Value) - startTime));
|
||||
|
||||
Reference in New Issue
Block a user