Skip to content

Commit

Permalink
Fixed stuck pendulum at launch
Browse files Browse the repository at this point in the history
  • Loading branch information
Meegooo committed Feb 14, 2018
1 parent 69bcb92 commit d679ef2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pendulum/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public class Main extends Application {
private static ScheduledExecutorService executorSimulatorService = Executors.newSingleThreadScheduledExecutor();
private static ScheduledFuture<?> scheduledDrawerFuture;
private static ScheduledFuture<?> scheduledSimulatorFuture;
private static Drawer drawer;
private static Drawer drawer;
private static Simulator simulator;

@Override
Expand All @@ -44,7 +44,7 @@ public void start(Stage primaryStage) throws Exception{
drawer = new Drawer();
simulator = new Simulator();
scheduledDrawerFuture = executorDrawerService.scheduleAtFixedRate(drawer, 0, 10, TimeUnit.MILLISECONDS);
scheduledSimulatorFuture = executorSimulatorService.scheduleAtFixedRate(simulator, 0, 100, TimeUnit.MICROSECONDS);
scheduledSimulatorFuture = executorSimulatorService.scheduleAtFixedRate(simulator, 0, 1, TimeUnit.MICROSECONDS);

}

Expand Down

0 comments on commit d679ef2

Please sign in to comment.