pull/981/head
gedoor 4 years ago
parent 1c09e1c2c7
commit 57f04955aa
  1. 4
      app/src/main/java/io/legado/app/ui/main/MainViewModel.kt

@ -119,11 +119,11 @@ class MainViewModel(application: Application) : BaseViewModel(application) {
if (!BookHelp.hasContent(book, chapter)) { if (!BookHelp.hasContent(book, chapter)) {
var addToCache = false var addToCache = false
while (!addToCache) { while (!addToCache) {
if (CacheBook.downloadCount() < 5) { if (CacheBook.downloadCount() < 10) {
CacheBook.download(this, webBook, book, chapter) CacheBook.download(this, webBook, book, chapter)
addToCache = true addToCache = true
} else { } else {
delay(1000) delay(100)
} }
} }
} }

Loading…
Cancel
Save