Skip to content

Commit

Permalink
fix: ignore CancellationException
Browse files Browse the repository at this point in the history
  • Loading branch information
BFergerson committed Sep 2, 2022
1 parent 6a2bfac commit af54ecb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion common/src/main/kotlin/spp/jetbrains/ScopeExtensions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,12 @@ object ScopeExtensions {
): Deferred<*> {
return GlobalScope.async {
safeExecute {
action()
try {
action()
} catch (ignored: CancellationException) {
} catch (throwable: Throwable) {
log.error(throwable)
}
}
}
}
Expand Down

0 comments on commit af54ecb

Please sign in to comment.