fix for bug 1151: use end of race instead of end of tracking, and end of tracking only as a default

This commit is contained in:
Axel Uhl
2013-01-18 13:35:36 +01:00
parent f04ce326b3
commit a47329eb95
@@ -698,7 +698,11 @@ public class SailingServiceImpl extends ProxiedRemoteServiceServlet implements S
raceDetails = new FutureTask<RaceDetails>(new Callable<RaceDetails>() {
@Override
public RaceDetails call() throws Exception {
return calculateRaceDetails(trackedRace, competitor, trackedRace.getEndOfTracking(),
TimePoint end = trackedRace.getEndOfRace();
if (end == null) {
end = trackedRace.getEndOfTracking();
}
return calculateRaceDetails(trackedRace, competitor, end,
/* waitForLatestManeuverAnalysis */ true /* because this is done only once after end of tracking */, legRanksCache);
}
});