Fix DreamMaker progress task

The task wasn't being cancelled correctly and was holding up the compile
This commit is contained in:
Jordan Brown
2020-05-24 22:29:07 -04:00
committed by GitHub
parent ed4b485cc2
commit e2e769d095
@@ -763,7 +763,7 @@ namespace Tgstation.Server.Host.Components.Deployment
}
using var progressCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
var progressTask = estimatedDuration.HasValue ? ProgressTask(progressReporter, estimatedDuration.Value, cancellationToken) : Task.CompletedTask;
var progressTask = estimatedDuration.HasValue ? ProgressTask(progressReporter, estimatedDuration.Value, progressCts.Token) : Task.CompletedTask;
try
{
using var byondLock = await byond.UseExecutables(null, cancellationToken).ConfigureAwait(false);