Set lastUpdateTime on task creation, otherwise delayed task won't be delayed

This commit is contained in:
jglrxavpok 2020-05-01 23:35:56 +02:00
parent 2fd7f2b310
commit edbc189b98
1 changed files with 1 additions and 0 deletions

View File

@ -23,6 +23,7 @@ public class SchedulerManager {
runnable.setId(id);
Task task = new Task(runnable, updateOption, maxCallCount);
task.refreshLastUpdateTime(System.currentTimeMillis());
this.tasks.add(task);
return id;