mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-08 21:30:57 +00:00
fixed invalidation of start time also for detaching the log and for re-setting the start time
This commit is contained in:
1 parent
5ad4359a45
commit
202bfcd5da
1 file changed
+2
-1
+2
-1
@@ -47,6 +47,7 @@ public class DynamicTrackedRaceLogListener implements RaceLogEventVisitor {
|
||||
// TODO:
|
||||
// ??? trackedRace.setStatus(new TrackedRaceStatusImpl(TrackedRaceStatusEnum.PREPARED, 0.0));
|
||||
if (raceLog != null) {
|
||||
trackedRace.invalidateStartTime();
|
||||
raceLog.removeListener(this);
|
||||
}
|
||||
}
|
||||
@@ -80,7 +81,7 @@ public class DynamicTrackedRaceLogListener implements RaceLogEventVisitor {
|
||||
|
||||
@Override
|
||||
public void visit(RaceLogStartTimeEvent event) {
|
||||
analyzeStatus();
|
||||
trackedRace.invalidateStartTime();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user