Browse Source

Increase default OkHttp call timeout to 2 minutes

Which is still stupidly high, but maybe it'll be lenient enough for certain people.
arkon 3 years ago
parent
commit
cdd4ec6233
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/src/main/java/eu/kanade/tachiyomi/network/NetworkHelper.kt

+ 1 - 1
app/src/main/java/eu/kanade/tachiyomi/network/NetworkHelper.kt

@@ -27,7 +27,7 @@ class NetworkHelper(context: Context) {
                 .cookieJar(cookieManager)
                 .connectTimeout(30, TimeUnit.SECONDS)
                 .readTimeout(30, TimeUnit.SECONDS)
-                .callTimeout(90, TimeUnit.SECONDS)
+                .callTimeout(2, TimeUnit.MINUTES)
                 // .fastFallback(true) // TODO: re-enable when OkHttp 5 is stabler
                 .addInterceptor(UserAgentInterceptor())