Skip to content

Commit 0401694

Browse files
committed
fix: increase delay
1 parent 13dc30f commit 0401694

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/src/main/java/to/bitkit/fcm/WakeNodeWorker.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ import to.bitkit.ui.pushNotification
4040
import to.bitkit.utils.Logger
4141
import to.bitkit.utils.withPerformanceLogging
4242
import kotlin.time.Duration.Companion.minutes
43+
import kotlin.time.Duration.Companion.seconds
4344

4445
@Suppress("LongParameterList")
4546
@HiltWorker
@@ -249,7 +250,7 @@ class WakeNodeWorker @AssistedInject constructor(
249250
}
250251

251252
// Delay briefly to allow app to come to foreground if user clicked notification
252-
delay(500)
253+
delay(1.seconds)
253254

254255
// Only stop node if app is not in foreground
255256
// LightningNodeService will keep node running in background when notifications are enabled

0 commit comments

Comments
 (0)