Skip to content

Commit 3d9d25d

Browse files
committed
Remove backoff criteria: it never kicked in
It never kicked in since we are never returning a retry() Result, but always either success() or failure() (see createWork() function). Also, there is already a default (exponential backoff starting from 30 seconds), so no need to override it.
1 parent 5fea12d commit 3d9d25d

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

app/src/main/java/org/schabi/newpipe/local/feed/notifications/NotificationWorker.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,6 @@ class NotificationWorker(
132132
TimeUnit.MILLISECONDS
133133
).setConstraints(constraints)
134134
.addTag(WORK_TAG)
135-
.setBackoffCriteria(BackoffPolicy.LINEAR, 30, TimeUnit.MINUTES)
136135
.build()
137136

138137
WorkManager.getInstance(context)

0 commit comments

Comments
 (0)