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:
Axel Uhl committed 2013-04-18 13:17:07 +02:00
1 parent a67b6ce953
commit 0bf63c7530
1 file changed
+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 {