Skip to content

Commit cda00a4

Browse files
committed
fix: replace runCatching with runSuspendCatching
1 parent 8b9c18b commit cda00a4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/src/main/java/to/bitkit/services/LightningService.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ class LightningService @Inject constructor(
338338
// and let the GC free it later on the finalizer thread, racing the next node.
339339
withContext(NonCancellable) {
340340
ServiceQueue.LDK.background {
341-
runCatching { node.stop() }
341+
runSuspendCatching { node.stop() }
342342
.onFailure {
343343
if (it !is NodeException.NotRunning) Logger.warn("Node stop error", it, context = TAG)
344344
}

0 commit comments

Comments
 (0)