mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-15 06:49:56 +00:00
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:
1 parent
ce76740656
commit
6f5e545edf
1 file changed
+4
-2
+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 {
|
||||
|
||||
Reference in new issue
Block a user