This commit is contained in:
kunfei
2022-07-27 22:22:42 +08:00
parent 992dfbbe27
commit a7e9cfec57
2 changed files with 2 additions and 1 deletions
@@ -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()