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:
Axel Uhl committed 2011-06-13 22:27:49 +02:00
1 parent 6d9ad23575
commit 98efb3f4f7
2 files changed
+4 -1

No files matched your search

@@ -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);
}
@@ -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);
}
}