X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fxwt%2FScheduler.java;h=8cbbb35c9e564994f3e506d818b3750a872ed432;hb=72e9e5cdb5055acb2c395e629c28042899462462;hp=58b6a8b915b696affe8e9bd86eb79c75386355e7;hpb=9f2b65deaba43f12661f49039b46c31f74d7dcfc;p=org.ibex.core.git diff --git a/src/org/xwt/Scheduler.java b/src/org/xwt/Scheduler.java index 58b6a8b..8cbbb35 100644 --- a/src/org/xwt/Scheduler.java +++ b/src/org/xwt/Scheduler.java @@ -60,7 +60,7 @@ public class Scheduler { protected static Queue runnable = new Queue(50); public void defaultRun() { - while(true) { + try {while(true) { currentTask = (Task)runnable.remove(true); try { synchronized(this) { @@ -86,6 +86,8 @@ public class Scheduler { Log.info(Scheduler.class, e); } // if an Error is thrown it will cause the engine to quit +} } catch (Throwable t) { + t.printStackTrace(); } } }