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:
parent
9f829dcec8
commit
68e45b321b
2 changed files with 0 additions and 2 deletions
|
@ -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);
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue