From 2b754aafac129493976fcd82d0dacf145d44cab1 Mon Sep 17 00:00:00 2001
From: Sven Gothel <sgothel@jausoft.com>
Date: Thu, 21 Sep 2023 10:28:06 +0200
Subject: WorkerThread: Fix minDelayMS assignment using validated field value

---
 src/java/com/jogamp/common/util/WorkerThread.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/java/com/jogamp/common/util/WorkerThread.java b/src/java/com/jogamp/common/util/WorkerThread.java
index a3a9914..5beb9d9 100644
--- a/src/java/com/jogamp/common/util/WorkerThread.java
+++ b/src/java/com/jogamp/common/util/WorkerThread.java
@@ -85,7 +85,7 @@ public class WorkerThread {
     public WorkerThread(final Duration minPeriod, final Duration minDelay, final boolean daemonThread, final Callback work, final Runnable init, final Runnable end) {
         this.minPeriod = null != minPeriod ? minPeriod : Duration.ZERO;
         this.minDelay = null != minDelay ? minDelay : Duration.ZERO;
-        this.minDelayMS = minDelay.toMillis();
+        this.minDelayMS = this.minDelay.toMillis();
         this.useMinimum = this.minPeriod.toMillis() > 0 || this.minDelayMS > 0;
         this.cbWork = work;
         this.cbInitLocked = init;
-- 
cgit v1.2.3