This commit is contained in:
kunfei committed 2022-07-27 22:22:42 +08:00
1 parent 992dfbbe27
commit a7e9cfec57
2 files changed
+2 -1

No files matched your search

@@ -161,6 +161,7 @@ object CacheBook {
fun stop() {
waitDownloadSet.clear()
isStopped = true
postEvent(EventBus.UP_DOWNLOAD, book.bookUrl)
}
@Synchronized
@@ -171,6 +172,7 @@ object CacheBook {
waitDownloadSet.add(i)
}
}
postEvent(EventBus.UP_DOWNLOAD, book.bookUrl)
}
@Synchronized
@@ -85,7 +85,6 @@ class CacheBookService : BaseService() {
execute {
val cacheBook = CacheBook.getOrCreate(bookUrl) ?: return@execute
cacheBook.addDownload(start, end)
postEvent(EventBus.UP_DOWNLOAD, "")
upNotification(CacheBook.downloadSummary)
if (downloadJob == null) {
download()