fixed isLive calculation in case of tracked race without GPS data

This commit is contained in:
fmittag committed 2015-05-20 16:34:28 +02:00
1 parent a51fe0f950
commit 7676c66bbf
1 file changed
+1 -1
@@ -252,7 +252,7 @@ public class RaceContext {
private boolean isLiveOrOfPublicInterest(TimePoint startTime, TimePoint finishTime) {
boolean result = false;
if(startTime != null && raceLog != null) {
if(trackedRace != null) {
if(trackedRace != null && trackedRace.hasGPSData() && trackedRace.hasWindData()) {
result = trackedRace.isLive(now);
} else {
// no data from tracking but maybe a manual setting of the start and finish time