forked from organicmaps/organicmaps
[android] [local_ads] Fix a data race.
This commit is contained in:
parent
97c9de0235
commit
833823bac6
1 changed files with 6 additions and 0 deletions
|
@ -135,6 +135,12 @@ public class GeofenceTransitionsIntentService extends JobIntentService
|
|||
|
||||
private void requestLocationCheck()
|
||||
{
|
||||
// Framework and LightFramework use the same files to process local ads
|
||||
// events and are not explicitly synchronized. Logging local ads events
|
||||
// from both frameworks at once may lead to a data race.
|
||||
if (getApplication().arePlatformAndCoreInitialized())
|
||||
return;
|
||||
|
||||
LOG.d(TAG, "Geofences = " + Arrays.toString(mGeofences.toArray()));
|
||||
|
||||
GeofenceLocation geofenceLocation = getGeofenceLocation();
|
||||
|
|
Loading…
Add table
Reference in a new issue