Fix not being able to cancel a deployment during DMAPI validation

This commit is contained in:
Jordan Dominion
2023-06-16 02:52:31 -04:00
committed by GitHub
parent a202845c30
commit 4129e224aa
@@ -805,7 +805,7 @@ namespace Tgstation.Server.Host.Components.Deployment
using (var provider = new TemporaryDmbProvider(ioManager.ResolvePath(job.DirectoryName.ToString()), String.Concat(job.DmeName, DmbExtension), job))
await using (var controller = await sessionControllerFactory.LaunchNew(provider, byondLock, launchParameters, true, cancellationToken))
{
var launchResult = await controller.LaunchResult;
var launchResult = await controller.LaunchResult.WithToken(cancellationToken);
if (launchResult.StartupTime.HasValue)
await controller.Lifetime.WithToken(cancellationToken);