mirror of
https://github.com/immich-app/immich.git
synced 2026-02-11 19:38:54 +03:00
fix: evict image from cache on error during image loading (#26078)
This commit is contained in:
@@ -62,6 +62,9 @@ mixin CancellableImageProviderMixin<T extends Object> on CancellableImageProvide
|
||||
return;
|
||||
}
|
||||
yield image;
|
||||
} catch (e) {
|
||||
PaintingBinding.instance.imageCache.evict(this);
|
||||
rethrow;
|
||||
} finally {
|
||||
this.request = null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user