mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +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;
|
return;
|
||||||
}
|
}
|
||||||
yield image;
|
yield image;
|
||||||
|
} catch (e) {
|
||||||
|
PaintingBinding.instance.imageCache.evict(this);
|
||||||
|
rethrow;
|
||||||
} finally {
|
} finally {
|
||||||
this.request = null;
|
this.request = null;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user