mirror of
https://github.com/gedoor/legado.git
synced 2025-08-10 00:52:30 +00:00
优化
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user