Skip to content

Commit af54ecb

Browse files
committed
fix: ignore CancellationException
1 parent 6a2bfac commit af54ecb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

common/src/main/kotlin/spp/jetbrains/ScopeExtensions.kt

+6-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,12 @@ object ScopeExtensions {
5757
): Deferred<*> {
5858
return GlobalScope.async {
5959
safeExecute {
60-
action()
60+
try {
61+
action()
62+
} catch (ignored: CancellationException) {
63+
} catch (throwable: Throwable) {
64+
log.error(throwable)
65+
}
6166
}
6267
}
6368
}

0 commit comments

Comments
 (0)