diff options
author | Samuel Tardieu <sam@rfc1149.net> | 2012-04-27 12:10:35 +0200 |
---|---|---|
committer | Samuel Tardieu <sam@rfc1149.net> | 2012-04-27 12:10:35 +0200 |
commit | 98b7c2f1d1ab2fe683a023c81f221de8eeac4abf (patch) | |
tree | cf3a05161b1e0a664f9d1db1ed821add3bffc95d /main | |
parent | be3ec038e508a37ad40f3ead6c9a2bbe60808ed2 (diff) | |
download | cgeo-98b7c2f1d1ab2fe683a023c81f221de8eeac4abf.zip cgeo-98b7c2f1d1ab2fe683a023c81f221de8eeac4abf.tar.gz cgeo-98b7c2f1d1ab2fe683a023c81f221de8eeac4abf.tar.bz2 |
Make geo volatile to properly use double-checked locking
Diffstat (limited to 'main')
-rw-r--r-- | main/src/cgeo/geocaching/cgeoapplication.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/cgeoapplication.java b/main/src/cgeo/geocaching/cgeoapplication.java index 5b105cf..68893c7 100644 --- a/main/src/cgeo/geocaching/cgeoapplication.java +++ b/main/src/cgeo/geocaching/cgeoapplication.java @@ -35,7 +35,7 @@ public class cgeoapplication extends Application { private cgData storage = null; private String action = null; private Geopoint lastCoords = null; - private GeoDataProvider geo; + private volatile GeoDataProvider geo; private cgDirection dir = null; private boolean dirInUse = false; public boolean firstRun = true; // c:geo is just launched |