protected static Queue runnable = new Queue(50);
public void defaultRun() {
while(true) {
+ System.out.println("enter");
current = (Task)runnable.remove(true);
try {
// FIXME hideous
} catch (Exception e) {
Log.info(Scheduler.class, "a Task threw an exception which was caught by the scheduler:");
Log.info(Scheduler.class, e);
+ } catch (Throwable t) {
+ t.printStackTrace();
}
// if an Error is thrown it will cause the engine to quit
+ System.out.println("leave");
}
}
}