|
@@ -2,6 +2,7 @@ package eu.kanade.tachiyomi.network
|
|
|
|
|
|
import android.content.Context
|
|
|
import eu.kanade.tachiyomi.network.interceptor.CloudflareInterceptor
|
|
|
+import eu.kanade.tachiyomi.network.interceptor.UncaughtExceptionInterceptor
|
|
|
import eu.kanade.tachiyomi.network.interceptor.UserAgentInterceptor
|
|
|
import okhttp3.Cache
|
|
|
import okhttp3.OkHttpClient
|
|
@@ -33,6 +34,7 @@ class NetworkHelper(
|
|
|
.connectTimeout(30, TimeUnit.SECONDS)
|
|
|
.readTimeout(30, TimeUnit.SECONDS)
|
|
|
.callTimeout(2, TimeUnit.MINUTES)
|
|
|
+ .addInterceptor(UncaughtExceptionInterceptor())
|
|
|
.addInterceptor(userAgentInterceptor)
|
|
|
|
|
|
if (preferences.verboseLogging().get()) {
|