pull/2119/head
kunfei 2 years ago
parent 657b8dd5b4
commit 23f19c0484
  1. 3
      app/src/main/java/io/legado/app/help/coroutine/Coroutine.kt

@ -151,9 +151,6 @@ class Coroutine<T>(
if (e is CancellationException && !isActive && e !is ActivelyCancelException) {
this@Coroutine.cancel()
}
if (e is CancellationException && e !is TimeoutCancellationException) {
return@launch
}
val consume: Boolean = errorReturn?.value?.let { value ->
success?.let { dispatchCallback(this, value, it) }
true

Loading…
Cancel
Save