From 5af246a3cd82fca26c0f96437f2b5299f33e58c1 Mon Sep 17 00:00:00 2001 From: Mateusz Warowny Date: Fri, 7 Jul 2023 10:54:40 +0200 Subject: [PATCH] JAL-4199 Set initial delay of task executor to 0 --- src/jalview/ws2/actions/PollingTaskExecutor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 1.7.10.2