Suwayomi: Add timeout (2min) waiting for Suwayomi staff to fix the problem (#18655)
* add huge timeout waiting for suwayomi to fix * update versionCode * fix: import TimeUnit and use MINUTES instead of SECONDS --------- Co-authored-by: Alexandre JOURNET <alexandre.journet@axopen.com>
This commit is contained in:
parent
3d5b6cf9d1
commit
8a49605cf2
|
@ -6,7 +6,7 @@ ext {
|
|||
extName = 'Suwayomi'
|
||||
pkgNameSuffix = 'all.tachidesk'
|
||||
extClass = '.Tachidesk'
|
||||
extVersionCode = 11
|
||||
extVersionCode = 12
|
||||
}
|
||||
|
||||
apply from: "$rootDir/common.gradle"
|
||||
|
|
|
@ -34,6 +34,7 @@ import rx.schedulers.Schedulers
|
|||
import uy.kohesive.injekt.Injekt
|
||||
import uy.kohesive.injekt.api.get
|
||||
import uy.kohesive.injekt.injectLazy
|
||||
import java.util.concurrent.TimeUnit
|
||||
import kotlin.math.min
|
||||
|
||||
class Tachidesk : ConfigurableSource, UnmeteredSource, HttpSource() {
|
||||
|
@ -51,6 +52,7 @@ class Tachidesk : ConfigurableSource, UnmeteredSource, HttpSource() {
|
|||
override val client: OkHttpClient =
|
||||
network.client.newBuilder()
|
||||
.dns(Dns.SYSTEM) // don't use DNS over HTTPS as it breaks IP addressing
|
||||
.callTimeout(2, TimeUnit.MINUTES)
|
||||
.build()
|
||||
|
||||
override fun headersBuilder(): Headers.Builder = Headers.Builder().apply {
|
||||
|
|
Loading…
Reference in New Issue