diff options
-rw-r--r-- | src/newt/classes/com/jogamp/newt/impl/DefaultEDTUtil.java | 3 |
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) ; |