edit MainViewModel.kt, 修改超时时间

pull/832/head
gedoor 4 years ago
parent 8172e9928c
commit 35ac0948ff
  1. 2
      app/src/main/java/io/legado/app/ui/main/MainViewModel.kt

@ -76,7 +76,7 @@ class MainViewModel(application: Application) : BaseViewModel(application) {
App.db.bookSourceDao.getBookSource(book.origin)?.let { bookSource ->
val webBook = WebBook(bookSource)
webBook.getChapterList(this, book, context = upTocPool)
.timeout(300000)
.timeout(60000)
.onSuccess(IO) {
App.db.bookDao.update(book)
App.db.bookChapterDao.delByBook(book.bookUrl)

Loading…
Cancel
Save