From 631be21abbd16542255f91f231132407c0635c87 Mon Sep 17 00:00:00 2001 From: OsakaRuma Date: Sun, 8 Sep 2024 15:07:34 +0800 Subject: [PATCH 1/2] fixed typo of variable name Signed-off-by: OsakaRuma --- src/Starward/Services/Download/InstallGameService.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Starward/Services/Download/InstallGameService.cs b/src/Starward/Services/Download/InstallGameService.cs index d44fb9a2f..ac2dd9366 100644 --- a/src/Starward/Services/Download/InstallGameService.cs +++ b/src/Starward/Services/Download/InstallGameService.cs @@ -722,14 +722,14 @@ protected void StartTask(InstallGameState state) async Task RunTasksAsync() { _cancellationTokenSource = new CancellationTokenSource(); - var tsaks = new Task[Environment.ProcessorCount]; + var tasts = new Task[Environment.ProcessorCount]; for (int i = 0; i < Environment.ProcessorCount; i++) { - tsaks[i] = ExecuteTaskItemAsync(_cancellationTokenSource.Token); + tasts[i] = ExecuteTaskItemAsync(_cancellationTokenSource.Token); } try { - await Task.WhenAll(tsaks).ConfigureAwait(false); + await Task.WhenAll(tasts).ConfigureAwait(false); } finally { From cc0a99dd50317b02a07421e0b58e21fa8c8cbdb0 Mon Sep 17 00:00:00 2001 From: OsakaRuma Date: Sun, 8 Sep 2024 15:10:09 +0800 Subject: [PATCH 2/2] fixed typo in variable name Signed-off-by: OsakaRuma --- src/Starward/Services/Download/InstallGameService.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Starward/Services/Download/InstallGameService.cs b/src/Starward/Services/Download/InstallGameService.cs index ac2dd9366..4f85ef711 100644 --- a/src/Starward/Services/Download/InstallGameService.cs +++ b/src/Starward/Services/Download/InstallGameService.cs @@ -722,14 +722,14 @@ protected void StartTask(InstallGameState state) async Task RunTasksAsync() { _cancellationTokenSource = new CancellationTokenSource(); - var tasts = new Task[Environment.ProcessorCount]; + var tasks = new Task[Environment.ProcessorCount]; for (int i = 0; i < Environment.ProcessorCount; i++) { - tasts[i] = ExecuteTaskItemAsync(_cancellationTokenSource.Token); + tasks[i] = ExecuteTaskItemAsync(_cancellationTokenSource.Token); } try { - await Task.WhenAll(tasts).ConfigureAwait(false); + await Task.WhenAll(tasks).ConfigureAwait(false); } finally {