Ver código fonte

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

arkon 3 anos atrás
pai
commit
7a0b54bb38

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