diff --git a/cached_network_image/lib/src/image_provider/_image_loader.dart b/cached_network_image/lib/src/image_provider/_image_loader.dart index e1cf3244..808d6b80 100644 --- a/cached_network_image/lib/src/image_provider/_image_loader.dart +++ b/cached_network_image/lib/src/image_provider/_image_loader.dart @@ -140,7 +140,8 @@ class ImageLoader implements platform.ImageLoader { errorListener?.call(e); rethrow; + } finally { + await chunkEvents.close(); } - await chunkEvents.close(); } }