Skip to content

Commit badbdc3

Browse files
committed
fix: check only if node is runnning
1 parent 2e6d5e3 commit badbdc3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/src/main/java/to/bitkit/repositories/LightningRepo.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ class LightningRepo @Inject constructor(
257257
Unit
258258
}.onFailure { e ->
259259
val currentLifecycleState = _lightningState.value.nodeLifecycleState
260-
if (currentLifecycleState.isRunningOrStarting()) {
260+
if (currentLifecycleState.isRunning()) {
261261
Logger.warn("Start error occurred but node is $currentLifecycleState, skipping retry", e, context = TAG)
262262
return@withContext Result.success(Unit)
263263
}

0 commit comments

Comments
 (0)