From 476231ba7f0ad3d32d20ceda41dda76e94f73564 Mon Sep 17 00:00:00 2001 From: Dominique Padiou <5765435+dpad85@users.noreply.github.com> Date: Wed, 11 Sep 2024 17:37:48 +0200 Subject: [PATCH] (android) Cancel daily-connect job in main startup --- .../kotlin/fr/acinq/phoenix/android/services/NodeService.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phoenix-android/src/main/kotlin/fr/acinq/phoenix/android/services/NodeService.kt b/phoenix-android/src/main/kotlin/fr/acinq/phoenix/android/services/NodeService.kt index 95637f153..9795b4986 100644 --- a/phoenix-android/src/main/kotlin/fr/acinq/phoenix/android/services/NodeService.kt +++ b/phoenix-android/src/main/kotlin/fr/acinq/phoenix/android/services/NodeService.kt @@ -224,7 +224,7 @@ class NodeService : Service() { log.info("cancel competing workers") val wm = WorkManager.getInstance(applicationContext) withContext(Dispatchers.IO) { - wm.getWorkInfosByTag(InflightPaymentsWatcher.TAG).get() + wm.getWorkInfosByTag(ChannelsWatcher.TAG).get() + wm.getWorkInfosByTag(InflightPaymentsWatcher.TAG).get() + wm.getWorkInfosByTag(ChannelsWatcher.TAG).get() + wm.getWorkInfosByTag(DailyConnect.TAG).get() }.forEach { wm.cancelWorkById(it.id).result.get() }