mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-08 21:30:57 +00:00
fixed bug when resetting the time of a race caused by 2 events written to the log with the same timestamp.
This commit is contained in:
1 parent
cc61f70b07
commit
e66411772b
1 file changed
+2
-1
+2
-1
@@ -125,7 +125,8 @@ public class RaceStateImpl implements RaceState, RaceLogChangedListener {
|
||||
|
||||
RaceLogRaceStatus status = getStatus();
|
||||
if (status != RaceLogRaceStatus.UNSCHEDULED) {
|
||||
onRaceAborted(eventTime.minus(1));
|
||||
//substract minus 2, because a PassChangeEvent (minus 2) AND a RaceStatusEvent (minus 1) will be written to log
|
||||
onRaceAborted(eventTime.minus(2));
|
||||
}
|
||||
|
||||
RaceLogEvent event = RaceLogEventFactory.INSTANCE.createStartTimeEvent(eventTime, UUID.randomUUID(),
|
||||
|
||||
Reference in new issue
Block a user