From b055c6109a3acbc3163db07bcf819aa0b2470b8b Mon Sep 17 00:00:00 2001 From: gedoor Date: Wed, 12 Aug 2020 17:55:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/service/DownloadService.kt | 2 +- app/src/main/java/io/legado/app/service/help/CheckSource.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/io/legado/app/service/DownloadService.kt b/app/src/main/java/io/legado/app/service/DownloadService.kt index 9c3c55381..b21d4e36e 100644 --- a/app/src/main/java/io/legado/app/service/DownloadService.kt +++ b/app/src/main/java/io/legado/app/service/DownloadService.kt @@ -188,7 +188,7 @@ class DownloadService : BaseService() { bookChapter, scope = this, context = searchPool - ).timeout(3000L) + ).timeout(60000L) .onError { synchronized(this) { downloadingList.remove(bookChapter.url) diff --git a/app/src/main/java/io/legado/app/service/help/CheckSource.kt b/app/src/main/java/io/legado/app/service/help/CheckSource.kt index 3f7ddb67f..c387e526c 100644 --- a/app/src/main/java/io/legado/app/service/help/CheckSource.kt +++ b/app/src/main/java/io/legado/app/service/help/CheckSource.kt @@ -50,7 +50,7 @@ class CheckSource(val source: BookSource) { ): Coroutine<*> { val webBook = WebBook(source) return webBook.searchBook(keyword, scope = scope, context = context) - .timeout(6000L) + .timeout(60000L) .onError(Dispatchers.IO) { source.addGroup("失效") App.db.bookSourceDao().update(source)