This commit is contained in:
kunfei
2022-07-27 22:48:50 +08:00
parent f4c1fc9dd4
commit 4efd84fb5e
@@ -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) {