Skip to content

Commit

Permalink
Merge branch 'bug_fix' into streamdownload
Browse files Browse the repository at this point in the history
Signed-off-by: OsakaRuma <[email protected]>

# Conflicts:
#	src/Starward/Services/Download/InstallGameService.cs
  • Loading branch information
iamscottxu committed Sep 8, 2024
2 parents 640f41e + cc0a99d commit b9f2ebd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Starward/Services/Download/InstallGameService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -862,14 +862,14 @@ async Task RunTasksAsync()
_ = StreamDownloadExecuteTaskItemAsync(_cancellationTokenSource.Token).ConfigureAwait(false);
return;
}
var tsaks = new Task[Environment.ProcessorCount];
var tasks = new Task[Environment.ProcessorCount];
for (int i = 0; i < Environment.ProcessorCount; i++)
{
tsaks[i] = ExecuteTaskItemAsync(_cancellationTokenSource.Token);
tasks[i] = ExecuteTaskItemAsync(_cancellationTokenSource.Token);
}
try
{
await Task.WhenAll(tsaks).ConfigureAwait(false);
await Task.WhenAll(tasks).ConfigureAwait(false);
}
finally
{
Expand Down

0 comments on commit b9f2ebd

Please sign in to comment.