From 22abac41d456ff8bb53b5760ee9e9ceece2be97e Mon Sep 17 00:00:00 2001 From: gedoor Date: Mon, 10 Aug 2020 09:26:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=A1=E9=AA=8C=E4=B9=A6=E6=BA=90=E5=8A=A0?= =?UTF-8?q?=E5=85=A5=E8=B6=85=E6=97=B6=E8=AE=BE=E5=AE=9A,=E9=98=B2?= =?UTF-8?q?=E6=AD=A2=E5=8D=A1=E4=BD=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/service/help/CheckSource.kt | 1 + 1 file changed, 1 insertion(+) 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 5d8c6876b..7a1440cf6 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,6 +50,7 @@ class CheckSource(val source: BookSource) { ): Coroutine<*> { val webBook = WebBook(source) return webBook.searchBook(keyword, scope = scope, context = context) + .timeout(3000L) .onError(Dispatchers.IO) { source.addGroup("失效") App.db.bookSourceDao().update(source)