Fixed the issue where the download task would stop after exiting the reader. Close #387

This commit is contained in:
2025-06-15 14:45:13 +08:00
parent 8868c6edb3
commit 182a821fc5
2 changed files with 6 additions and 1 deletions

View File

@@ -111,6 +111,11 @@ abstract class ImageDownloader {
return stream.stream;
}
static Stream<ImageDownloadProgress> loadComicImageUnwrapped(
String imageKey, String? sourceKey, String cid, String eid) {
return _loadComicImage(imageKey, sourceKey, cid, eid);
}
static Stream<ImageDownloadProgress> _loadComicImage(
String imageKey, String? sourceKey, String cid, String eid) async* {
final cacheKey = "$imageKey@$sourceKey@$cid@$eid";