This commit is contained in:
kunfei
2022-07-27 22:47:46 +08:00
parent 22d34143d3
commit 896efaffb5

View File

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