mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-04 19:33:52 +00:00
increased timeout for declination read-out; notify about mark passings changes only after
all of a competitor's known mark passings have been re-established
This commit is contained in:
1 parent
6d9ad23575
commit
98efb3f4f7
2 files changed
+4
-1
No files matched your search
+1
-1
@@ -55,7 +55,7 @@ public class DeclinationImportTest extends AbstractDeclinationTest {
|
||||
public void readOnlineOrFromFile() throws IOException, ClassNotFoundException, ParseException {
|
||||
Declination declination = importer.getDeclination(new DegreePosition(53, 3),
|
||||
new MillisecondsTimePoint(simpleDateFormat.parse("2011-05-27").getTime()),
|
||||
/* timeoutForOnlineFetchInMilliseconds */ 5000);
|
||||
/* timeoutForOnlineFetchInMilliseconds */ 10000);
|
||||
assertNotNull(declination);
|
||||
System.out.println(declination);
|
||||
}
|
||||
|
||||
+3
@@ -119,6 +119,9 @@ public class DynamicTrackedRaceImpl extends TrackedRaceImpl implements
|
||||
competitorMarkPassings.add(markPassing);
|
||||
getMarkPassingsInOrder(markPassing.getWaypoint()).add(markPassing);
|
||||
updated(markPassing.getTimePoint());
|
||||
}
|
||||
// notify *after* all mark passings have been re-established; should avoid flicker
|
||||
for (MarkPassing markPassing : markPassings) {
|
||||
notifyListeners(markPassing);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user