summaryrefslogtreecommitdiffstats
path: root/src/newt
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2010-11-04 03:16:02 +0100
committerSven Gothel <[email protected]>2010-11-04 03:16:02 +0100
commitee0b89ccaa9e5587058f3764e52f3bcc205e862d (patch)
treeaa79ba9d575b8eaece26afdd57d7654a1bb40a98 /src/newt
parent691e72c21ea17ef84b4d483970675862a9d6c3bc (diff)
NEWT DefaultEDT: always catch and report Exceptions, don't disturb EDT
Diffstat (limited to 'src/newt')
-rw-r--r--src/newt/classes/com/jogamp/newt/impl/DefaultEDTUtil.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/newt/classes/com/jogamp/newt/impl/DefaultEDTUtil.java b/src/newt/classes/com/jogamp/newt/impl/DefaultEDTUtil.java
index c5460ef40..d7a22b92c 100644
--- a/src/newt/classes/com/jogamp/newt/impl/DefaultEDTUtil.java
+++ b/src/newt/classes/com/jogamp/newt/impl/DefaultEDTUtil.java
@@ -157,7 +157,7 @@ public class DefaultEDTUtil implements EDTUtil {
wait = wait && edt.isRunning();
rTask = new RunnableTask(task,
wait ? rTaskLock : null,
- wait /* catch Exceptions if waiting for result */);
+ true /* always catch and report Exceptions, don't disturb EDT */);
if(stop) {
rTask.setAttachment(new Boolean(true)); // mark final task
}
@@ -268,6 +268,7 @@ public class DefaultEDTUtil implements EDTUtil {
}
}
if(null!=task) {
+ // Exceptions are always catched, see RunnableTask creation above
task.run();
}
} while(!shouldStop) ;