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'
|
extName = 'Suwayomi'
|
||||||
pkgNameSuffix = 'all.tachidesk'
|
pkgNameSuffix = 'all.tachidesk'
|
||||||
extClass = '.Tachidesk'
|
extClass = '.Tachidesk'
|
||||||
extVersionCode = 11
|
extVersionCode = 12
|
||||||
}
|
}
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -34,6 +34,7 @@ import rx.schedulers.Schedulers
|
||||||
import uy.kohesive.injekt.Injekt
|
import uy.kohesive.injekt.Injekt
|
||||||
import uy.kohesive.injekt.api.get
|
import uy.kohesive.injekt.api.get
|
||||||
import uy.kohesive.injekt.injectLazy
|
import uy.kohesive.injekt.injectLazy
|
||||||
|
import java.util.concurrent.TimeUnit
|
||||||
import kotlin.math.min
|
import kotlin.math.min
|
||||||
|
|
||||||
class Tachidesk : ConfigurableSource, UnmeteredSource, HttpSource() {
|
class Tachidesk : ConfigurableSource, UnmeteredSource, HttpSource() {
|
||||||
|
@ -51,6 +52,7 @@ class Tachidesk : ConfigurableSource, UnmeteredSource, HttpSource() {
|
||||||
override val client: OkHttpClient =
|
override val client: OkHttpClient =
|
||||||
network.client.newBuilder()
|
network.client.newBuilder()
|
||||||
.dns(Dns.SYSTEM) // don't use DNS over HTTPS as it breaks IP addressing
|
.dns(Dns.SYSTEM) // don't use DNS over HTTPS as it breaks IP addressing
|
||||||
|
.callTimeout(2, TimeUnit.MINUTES)
|
||||||
.build()
|
.build()
|
||||||
|
|
||||||
override fun headersBuilder(): Headers.Builder = Headers.Builder().apply {
|
override fun headersBuilder(): Headers.Builder = Headers.Builder().apply {
|
||||||
|
|
Loading…
Reference in New Issue