We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 16e032e + 4e3d713 commit 824b7baCopy full SHA for 824b7ba
Flow.Launcher.Infrastructure/Image/ImageCache.cs
@@ -74,7 +74,7 @@ async void SliceExtra()
74
// To delete the images from the data dictionary based on the resizing of the Usage Dictionary
75
// Double Check to avoid concurrent remove
76
if (Data.Count > permissibleFactor * MaxCached)
77
- foreach (var key in Data.OrderBy(x => x.Value.usage).Take(Data.Count - MaxCached).Select(x => x.Key).ToArray())
+ foreach (var key in Data.OrderBy(x => x.Value.usage).Take(Data.Count - MaxCached).Select(x => x.Key))
78
Data.TryRemove(key, out _);
79
semaphore.Release();
80
}
0 commit comments