fix static fields that were being accessed non-statically
[org.ibex.core.git] / src / org / ibex / Scheduler.java
index 4ec0aec..43be3d9 100644 (file)
@@ -11,7 +11,7 @@ public class Scheduler {
 
     private static Scheduler singleton;
     public static interface Task { public abstract void perform() throws Exception; }
-    public static void add(Task t) { singleton.runnable.append(t); }
+    public static void add(Task t) { Scheduler.runnable.append(t); }
     public static void init() { if (singleton == null) (singleton = Platform.getScheduler()).run(); }
 
     private static Task current = null;