Reverted c2aee1a9cc because this changes

the semantics. The semantics change needs to be discussed further before
implementing it at such a critical level.
This commit is contained in:
Simon Pamies committed 2013-12-22 11:52:19 +01:00
1 parent d09e34f8db
commit 1febdae995
1 file changed
+5 -5
@@ -916,11 +916,11 @@ public abstract class AbstractSimpleLeaderboardImpl implements Leaderboard, Race
// stop counting when competitor finished the race
to = markPassings.last().getTimePoint();
} else {
// seems that the last mark passing is not the finish - that means that
// the competitor did not finish the race - we still want to count
// the time until the last mark passing
if (timePoint.after(markPassings.last().getTimePoint())) {
to = markPassings.last().getTimePoint();
if (trackedRace.getEndOfTracking() != null
&& timePoint.after(trackedRace.getEndOfTracking())) {
result = null; // race not finished until end of tracking; no reasonable value can be
// computed for competitor
break;
} else {
to = timePoint;
}