diff --git a/app/src/main/java/io/legado/app/model/CacheBook.kt b/app/src/main/java/io/legado/app/model/CacheBook.kt index cb228bd4a..e713fb6ab 100644 --- a/app/src/main/java/io/legado/app/model/CacheBook.kt +++ b/app/src/main/java/io/legado/app/model/CacheBook.kt @@ -149,7 +149,9 @@ class CacheBook(var bookSource: BookSource, var book: Book) { @Synchronized fun addDownload(start: Int, end: Int) { for (i in start..end) { - waitDownloadSet.add(i) + if (!onDownloadSet.contains(i)) { + waitDownloadSet.add(i) + } } }