aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-09-20 00:06:52 +0200
committerSven Gothel <[email protected]>2023-09-20 00:06:52 +0200
commitdbacecc077fe44142d7ed1ba74a41d5e50cd8dc8 (patch)
treebd298762bdf1056d12ebee2f03b73c66ccadc6e0
parentfedfc22ba3a3583a3ecf4b55f7f8a822045b690c (diff)
WorkerThread: Move 'streamErr' Exception to local Runnable
-rw-r--r--src/java/com/jogamp/common/util/WorkerThread.java2
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 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 ) {