|
|
@ -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)) { |
|
|
|