From: Mateusz Warowny Date: Fri, 7 Jul 2023 08:54:40 +0000 (+0200) Subject: JAL-4199 Set initial delay of task executor to 0 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=5af246a3cd82fca26c0f96437f2b5299f33e58c1;p=jalview.git JAL-4199 Set initial delay of task executor to 0 --- diff --git a/src/jalview/ws2/actions/PollingTaskExecutor.java b/src/jalview/ws2/actions/PollingTaskExecutor.java index e1775d4..ff7a3db 100644 --- a/src/jalview/ws2/actions/PollingTaskExecutor.java +++ b/src/jalview/ws2/actions/PollingTaskExecutor.java @@ -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