fixing issue where MarkPassingCalculators for all races in the regatta are stopped when only one race is removed

Change-Id: I27d374637828ea6506771fdaef9a9c7769f21cbd
This commit is contained in:
Axel Uhl committed 2016-04-17 19:11:31 +02:00
1 parent ce76740656
commit 6f5e545edf
1 file changed
+4 -2
@@ -536,8 +536,10 @@ public abstract class TrackedRaceImpl extends TrackedRaceWithWindEssentials impl
public void raceAdded(TrackedRace trackedRace) {}
@Override
public void raceRemoved(TrackedRace trackedRace) {
// stop mark passing calculator when tracked race is removed:
markPassingCalculator.stop();
if (trackedRace == this) {
// stop mark passing calculator when tracked race is removed:
markPassingCalculator.stop();
}
}
});
} else {