Browse Source

Set network call timeout to 90 seconds (instead of infinite)

arkon 3 years ago
parent
commit
7a0b54bb38
1 changed files with 1 additions and 0 deletions
  1. 1 0
      app/src/main/java/eu/kanade/tachiyomi/network/NetworkHelper.kt

+ 1 - 0
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())