Skip to content

Commit

Permalink
优化
Browse files Browse the repository at this point in the history
  • Loading branch information
821938089 committed Feb 5, 2025
1 parent 6e9f77a commit 176796b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/main/java/io/legado/app/help/coroutine/Coroutine.kt
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,9 @@ class Coroutine<T>(
cancel?.let {
DEFAULT.launch(executeContext) {
if (null == it.context) {
it.block.invoke(scope)
it.block.invoke(this)
} else {
withContext(scope.coroutineContext + it.context) {
withContext(it.context) {
it.block.invoke(this)
}
}
Expand Down

0 comments on commit 176796b

Please sign in to comment.