diff options
author | Sven Gothel <[email protected]> | 2023-09-21 10:28:06 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-09-21 10:28:06 +0200 |
commit | 2b754aafac129493976fcd82d0dacf145d44cab1 (patch) | |
tree | 3c2a5ac55711b3dabb2434a9c143d6087c875b9a /src/java/com/jogamp/common/util | |
parent | 53790cc4718d5e46f390a80957a45d30955c430f (diff) |
WorkerThread: Fix minDelayMS assignment using validated field value
Diffstat (limited to 'src/java/com/jogamp/common/util')
-rw-r--r-- | src/java/com/jogamp/common/util/WorkerThread.java | 2 |
1 files changed, 1 insertions, 1 deletions
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; |