From dbacecc077fe44142d7ed1ba74a41d5e50cd8dc8 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Wed, 20 Sep 2023 00:06:52 +0200 Subject: WorkerThread: Move 'streamErr' Exception to local Runnable --- 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 996fd08..3cb36d9 100644 --- a/src/java/com/jogamp/common/util/WorkerThread.java +++ b/src/java/com/jogamp/common/util/WorkerThread.java @@ -50,7 +50,6 @@ public class WorkerThread { private volatile boolean shallPause = true; private volatile boolean shallStop = false; - private Exception streamErr = null; private final Duration minPeriod; private final boolean useMinPeriod; private final Callback cbWork; @@ -238,6 +237,7 @@ public class WorkerThread { } while( !shallStop ) { + Exception streamErr = null; try { if( shallPause ) { synchronized ( WorkerThread.this ) { -- cgit v1.2.3