Skip to content

Commit

Permalink
Fix a resource leak in the cache manager
Browse files Browse the repository at this point in the history
  • Loading branch information
qe201020335 committed Dec 3, 2024
1 parent a2736ed commit 87bdef8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions SongPlayHistory/SongPlayData/ScoringCacheManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ private Task<LevelScoringCache> CreateCancellableTaskFromLoadTask(LoadTask loadT
var finishedTask = await Task.WhenAny(loadingTask, cancelTaskSource.Task);
if (finishedTask == loadingTask)
{
cancelTaskSource.TrySetResult(false);
return await loadTask.Task;
}

Expand Down

0 comments on commit 87bdef8

Please sign in to comment.