pull/2146/head
821938089 2 years ago
parent 6356991920
commit ca481c6987
  1. 2
      app/src/main/java/io/legado/app/help/coroutine/Coroutine.kt

@ -149,7 +149,7 @@ class Coroutine<T>(
try { try {
start?.let { dispatchVoidCallback(this, it) } start?.let { dispatchVoidCallback(this, it) }
ensureActive() ensureActive()
val value = executeBlock(scope, context, timeMillis ?: 0L, block) val value = executeBlock(this, context, timeMillis ?: 0L, block)
ensureActive() ensureActive()
success?.let { dispatchCallback(this, value, it) } success?.let { dispatchCallback(this, value, it) }
} catch (e: Throwable) { } catch (e: Throwable) {

Loading…
Cancel
Save