From ee0b89ccaa9e5587058f3764e52f3bcc205e862d Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Thu, 4 Nov 2010 03:16:02 +0100 Subject: NEWT DefaultEDT: always catch and report Exceptions, don't disturb EDT --- src/newt/classes/com/jogamp/newt/impl/DefaultEDTUtil.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/newt/classes/com/jogamp') 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) ; -- cgit v1.2.3