Skip to content

Commit

Permalink
(android) Cancel daily-connect job in main startup
Browse files Browse the repository at this point in the history
  • Loading branch information
dpad85 committed Sep 11, 2024
1 parent 81f2df7 commit 476231b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down

0 comments on commit 476231b

Please sign in to comment.