mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-12 07:10:55 +00:00
fixing bug 1349; DynamicTrackedRace held back triggers for the maneuver cache when the race was in state LOADING;
This was superceded by the change to suspend and resume the caches while the race is in state LOADING. However, when suspended, triggers need to be sent to the cache, or else it won't start an update for those keys when resumed. Note that this commit does not fix the "side-show" issue of prematurely switching a race to TRACKING state even if there are events left in its queue.
This commit is contained in:
1 parent
a67b6ce953
commit
0bf63c7530
1 file changed
+1
-3
+1
-3
@@ -1781,9 +1781,7 @@ public abstract class TrackedRaceImpl implements TrackedRace, CourseListener {
|
||||
}
|
||||
|
||||
protected void triggerManeuverCacheRecalculation(final Competitor competitor) {
|
||||
if (getStatus().getStatus() != TrackedRaceStatusEnum.LOADING) {
|
||||
maneuverCache.triggerUpdate(competitor, /* updateInterval */ null);
|
||||
}
|
||||
maneuverCache.triggerUpdate(competitor, /* updateInterval */ null);
|
||||
}
|
||||
|
||||
private Triple<TimePoint, TimePoint, List<Maneuver>> computeManeuvers(Competitor competitor) throws NoWindException {
|
||||
|
||||
Reference in new issue
Block a user