Bug 4001 fix for concurrent modification exception

This commit is contained in:
Papick Garcia Taboada committed 2016-12-15 15:36:17 +01:00
1 parent a089566920
commit f3fb540b0a
1 file changed
+2 -1
@@ -120,7 +120,8 @@ public class RaceLogFixTrackerManager implements TrackingDataLoader {
stopTrackerIfStillRunning(preemptive);
trackedRace.removeListener(raceChangeListener);
synchronized (knownRaceLogs) {
for (RaceLog raceLog : knownRaceLogs) {
final Set<RaceLog> tempSet = new HashSet<>(knownRaceLogs);
for (RaceLog raceLog : tempSet) {
removeRaceLogUnlocked(raceLog);
}
}