diff --git a/src/mainloop/manager/MainloopManager.java b/src/mainloop/manager/MainloopManager.java index f192c80..7a92c56 100755 --- a/src/mainloop/manager/MainloopManager.java +++ b/src/mainloop/manager/MainloopManager.java @@ -21,13 +21,13 @@ public class MainloopManager // Initialize the variables this.handler = handler; this.tasks = new ArrayList(); - this.timer = new MainloopTimer(handler); } public void start() { - // Set running to true + // Set running to true and reset the timer this.running = true; + this.timer = new MainloopTimer(this.handler); // Call the on start function this.handler.onStart();