mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-26 23:46:36 +00:00
made trackBasedEstimationWindTrackImpl synchronized to fix concurrent modification exception bug 452
This commit is contained in:
+1
-1
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user