pull/2102/head
kunfei 2 years ago
parent 896efaffb5
commit 222c26046c
  1. 2
      app/src/main/java/io/legado/app/help/coroutine/Coroutine.kt

@ -146,7 +146,7 @@ class Coroutine<T>(
success?.let { dispatchCallback(this, value, it) }
} catch (e: Throwable) {
e.printOnDebug()
if (isActive) {
if (e is CancellationException && isActive) {
this@Coroutine.cancel()
}
if (e is CancellationException && e !is TimeoutCancellationException) {

Loading…
Cancel
Save