From 7a0b54bb3822bef3423a68c4e3512e2838ce11b1 Mon Sep 17 00:00:00 2001 From: arkon Date: Fri, 15 Apr 2022 09:56:35 -0400 Subject: [PATCH] Set network call timeout to 90 seconds (instead of infinite) --- app/src/main/java/eu/kanade/tachiyomi/network/NetworkHelper.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/eu/kanade/tachiyomi/network/NetworkHelper.kt b/app/src/main/java/eu/kanade/tachiyomi/network/NetworkHelper.kt index bda8e707a..7790953e2 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/network/NetworkHelper.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/network/NetworkHelper.kt @@ -27,6 +27,7 @@ class NetworkHelper(context: Context) { .cookieJar(cookieManager) .connectTimeout(30, TimeUnit.SECONDS) .readTimeout(30, TimeUnit.SECONDS) + .callTimeout(90, TimeUnit.SECONDS) // .fastFallback(true) // TODO: re-enable when OkHttp 5 is stabler .addInterceptor(UserAgentInterceptor())