diff options
Diffstat (limited to 'src/java')
-rw-r--r-- | src/java/com/jogamp/common/util/RunnableTask.java | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/java/com/jogamp/common/util/RunnableTask.java b/src/java/com/jogamp/common/util/RunnableTask.java index eac6255..d5622b2 100644 --- a/src/java/com/jogamp/common/util/RunnableTask.java +++ b/src/java/com/jogamp/common/util/RunnableTask.java @@ -81,9 +81,7 @@ public class RunnableTask implements Runnable { runnable.run(); } catch (Throwable t) { runnableException = t; - if(catchExceptions) { - runnableException.printStackTrace(); - } else { + if(!catchExceptions) { throw new RuntimeException(runnableException); } } finally { @@ -95,9 +93,7 @@ public class RunnableTask implements Runnable { runnable.run(); } catch (Throwable t) { runnableException = t; - if(catchExceptions) { - runnableException.printStackTrace(); - } else { + if(!catchExceptions) { throw new RuntimeException(runnableException); } } finally { |