RaceController/info table now makes a copy of the boat list, to avoid race conditions.

#story[1095]
This commit is contained in:
fjc40
2017-08-15 23:10:32 +12:00
parent bcb6b79f8d
commit 85e703cba5
2 changed files with 8 additions and 5 deletions
@@ -183,10 +183,7 @@ public class VisualiserRaceState extends RaceState {
boat.setCurrentLeg(getLegs().get(0));
Platform.runLater(() -> {
existingBoats.add(boat);
setPlayerBoat();
});
existingBoats.add(boat);
}