Fix static analyzer warning.

#preflight none

[CL 23145189 by Ben Marsh in ue5-main branch]
This commit is contained in:
Ben Marsh
2022-11-15 17:53:00 -05:00
parent f7fb9cb80d
commit aadef9cccd

View File

@@ -1060,7 +1060,7 @@ namespace EpicGames.Core
for (; ; )
{
Task<int> readTask = StdOut.ReadAsync(buffer, 0, bufferSize, cancellationToken);
_ = readTask.ContinueWith(x => _ = x.Exception, TaskContinuationOptions.OnlyOnFaulted);
_ = readTask.ContinueWith(x => _ = x.Exception, CancellationToken.None, TaskContinuationOptions.OnlyOnFaulted, TaskScheduler.Default);
Task completedTask = await Task.WhenAny(readTask, taskCompletionSource.Task);
cancellationToken.ThrowIfCancellationRequested();