JAL-4199 Set initial delay of task executor to 0
authorMateusz Warowny <mmzwarowny@dundee.ac.uk>
Fri, 7 Jul 2023 08:54:40 +0000 (10:54 +0200)
committerMateusz Warowny <mmzwarowny@dundee.ac.uk>
Wed, 12 Jul 2023 14:25:05 +0000 (16:25 +0200)
src/jalview/ws2/actions/PollingTaskExecutor.java

index e1775d4..ff7a3db 100644 (file)
@@ -34,7 +34,7 @@ public class PollingTaskExecutor
   {
     Objects.requireNonNull(task);
     return executor.scheduleWithFixedDelay(
-        new TaskRunnable(task), 2, 2, TimeUnit.SECONDS);
+        new TaskRunnable(task), 0, 2, TimeUnit.SECONDS);
   }
 
   private static class TaskRunnable implements Runnable