Horis 2 anni fa
parent
commit
62f6edbd1d
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      app/src/main/java/io/legado/app/model/CacheBook.kt

+ 1 - 1
app/src/main/java/io/legado/app/model/CacheBook.kt

@@ -267,7 +267,7 @@ object CacheBook {
             waitDownloadSet.remove(chapterIndex)
             waitDownloadSet.remove(chapterIndex)
             onDownloadSet.add(chapterIndex)
             onDownloadSet.add(chapterIndex)
             if (BookHelp.hasContent(book, chapter)) {
             if (BookHelp.hasContent(book, chapter)) {
-                Coroutine.async(executeContext = context) {
+                Coroutine.async(scope, context, executeContext = context) {
                     BookHelp.getContent(book, chapter)?.let {
                     BookHelp.getContent(book, chapter)?.let {
                         BookHelp.saveImages(bookSource, book, chapter, it, 1)
                         BookHelp.saveImages(bookSource, book, chapter, it, 1)
                     }
                     }