made trackBasedEstimationWindTrackImpl synchronized to fix concurrent modification exception bug 452

This commit is contained in:
Axel Uhl
2012-03-23 08:58:15 +01:00
parent 3e4c6e7846
commit 469d3ca54d
@@ -230,7 +230,7 @@ public class TrackBasedEstimationWindTrackImpl extends VirtualWindTrackImpl impl
* {@link InvalidationInterval#clear() clears} the invalidation interval, indicating that currently no scheduler is
* running.
*/
private void invalidateCache() {
private synchronized void invalidateCache() {
synchronized (scheduledInvalidationInterval) {
// FIXME see bug 452: synchronize also on the cached fixes
Iterator<WindWithConfidence<TimePoint>> iter = (scheduledInvalidationInterval.getStart() == null ? getCachedFixes()