1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-26 17:57:16 +00:00

Skip cancelling work

This commit is contained in:
M66B 2024-03-12 18:27:26 +01:00
parent 9f829dcec8
commit 68e45b321b
2 changed files with 0 additions and 2 deletions

View file

@ -154,7 +154,6 @@ public class WorkerDailyRules extends Worker {
delay = cal.getTimeInMillis() - now;
EntityLog.log(context, EntityLog.Type.Rules, "Queuing " + getName() + " delay=" + (delay / (60 * 1000L)) + "m");
WorkManager.getInstance(context).cancelUniqueWork(getName());
PeriodicWorkRequest.Builder builder =
new PeriodicWorkRequest.Builder(WorkerDailyRules.class, 1, TimeUnit.DAYS)
.setInitialDelay(delay, TimeUnit.MILLISECONDS);

View file

@ -92,7 +92,6 @@ public class WorkerSync extends Worker {
EntityLog.log(context, EntityLog.Type.Cloud,
"Queuing " + getName() + " delay=" + (delay / (60 * 1000L)) + "m");
WorkManager.getInstance(context).cancelUniqueWork(getName());
PeriodicWorkRequest.Builder builder =
new PeriodicWorkRequest.Builder(WorkerSync.class, 1, TimeUnit.DAYS)
.setInitialDelay(delay, TimeUnit.MILLISECONDS)