pull/2102/head
kunfei 2 years ago
parent 9457f38d1b
commit 22d34143d3
  1. 4
      app/src/main/java/io/legado/app/help/coroutine/Coroutine.kt

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

Loading…
Cancel
Save