pull/1301/head
gedoor 3 years ago
parent 1e26647058
commit 8f57c5834b
  1. 2
      app/src/main/java/io/legado/app/model/CacheBook.kt

@ -162,7 +162,9 @@ class CacheBook(var bookSource: BookSource, var book: Book) {
synchronized(this) { synchronized(this) {
val chapterIndex = waitDownloadSet.firstOrNull() val chapterIndex = waitDownloadSet.firstOrNull()
if (chapterIndex == null) { if (chapterIndex == null) {
if (onDownloadSet.isEmpty()) {
cacheBookMap.remove(book.bookUrl) cacheBookMap.remove(book.bookUrl)
}
return false return false
} }
if (onDownloadSet.contains(chapterIndex)) { if (onDownloadSet.contains(chapterIndex)) {

Loading…
Cancel
Save