Skip to content

Commit

Permalink
https://github.com/Baseflow/flutter_cached_network_image/issues/336
Browse files Browse the repository at this point in the history
  • Loading branch information
miich43l committed Nov 13, 2022
1 parent 3fcd65a commit 5379bfd
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ class ImageLoader implements platform.ImageLoader {
yield decoded;
}
}
} catch (e) {
} catch (e, stacktrace) {
// Depending on where the exception was thrown, the image cache may not
// have had a chance to track the key in the cache at all.
// Schedule a microtask to give the cache a chance to add the key.
Expand All @@ -131,7 +131,8 @@ class ImageLoader implements platform.ImageLoader {
});

errorListener?.call();
rethrow;
chunkEvents.addError(e, stacktrace);
// rethrow;
} finally {
await chunkEvents.close();
}
Expand Down

0 comments on commit 5379bfd

Please sign in to comment.