mirror of
https://github.com/immich-app/immich.git
synced 2026-07-14 09:00:59 +00:00
fix: evict image from cache on error during image loading (#26078)
This commit is contained in:
parent
561469b826
commit
3462fc434e
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue