pull/2102/head
kunfei 2 years ago
parent 22d34143d3
commit 896efaffb5
  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) } success?.let { dispatchCallback(this, value, it) }
} catch (e: Throwable) { } catch (e: Throwable) {
e.printOnDebug() e.printOnDebug()
if (e is CancellationException && e !is ActivelyCancelException) { if (isActive) {
this@Coroutine.cancel() this@Coroutine.cancel()
} }
if (e is CancellationException && e !is TimeoutCancellationException) { if (e is CancellationException && e !is TimeoutCancellationException) {

Loading…
Cancel
Save