Skip to content

Commit f6e3608

Browse files
committed
Do not crash when saving cache
1 parent 95a3fd3 commit f6e3608

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Flow.Launcher.Infrastructure/Image/ImageLoader.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ await _storage.SaveAsync(ImageCache.EnumerateEntries()
7171
.Select(x => x.Key)
7272
.ToList());
7373
}
74+
catch (System.Exception e)
75+
{
76+
Log.Exception($"|ImageLoader.SaveAsync|Failed to save image cache to file", e);
77+
}
7478
finally
7579
{
7680
storageLock.Release();

0 commit comments

Comments
 (0)