diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2014-08-28 10:50:05 +0200 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2014-08-29 09:39:07 +0200 |
| commit | df3ab2200c06c1aa959eadd70f9106a5eac73a2a (patch) | |
| tree | 5ac762ae5c2a21b4a5c9f166111bc4c5a000ec9b | |
| parent | c74c48c3fb2d72228ae674a113300414beb50aa8 (diff) | |
| download | cgeo-df3ab2200c06c1aa959eadd70f9106a5eac73a2a.zip cgeo-df3ab2200c06c1aa959eadd70f9106a5eac73a2a.tar.gz cgeo-df3ab2200c06c1aa959eadd70f9106a5eac73a2a.tar.bz2 | |
fix #3569: concurrent modification when filtering caches on map
| -rw-r--r-- | main/src/cgeo/geocaching/maps/CGeoMap.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/maps/CGeoMap.java b/main/src/cgeo/geocaching/maps/CGeoMap.java index 91febd9..f407f28 100644 --- a/main/src/cgeo/geocaching/maps/CGeoMap.java +++ b/main/src/cgeo/geocaching/maps/CGeoMap.java @@ -1151,7 +1151,9 @@ public class CGeoMap extends AbstractMap implements ViewFactory { final boolean excludeMine = Settings.isExcludeMyCaches(); final boolean excludeDisabled = Settings.isExcludeDisabledCaches(); if (mapMode == MapMode.LIVE) { - CGeoMap.filter(caches); + synchronized(caches) { + CGeoMap.filter(caches); + } } countVisibleCaches(); if (cachesCnt < Settings.getWayPointsThreshold() || geocodeIntent != null) { |
