2004/01/13 19:27:17
[org.ibex.core.git] / src / org / xwt / Scheduler.java
index 58b6a8b..8cbbb35 100644 (file)
@@ -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();
         }
     }
 }