aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2016-07-19 17:03:00 +0500
committerAbyss777 <abyss@fox5.ru>2016-07-19 17:03:00 +0500
commit6ef76c9e22ada4ed5d89d0a3bd43d759b56bebe0 (patch)
tree6b73770f8e8e27051dc0efadd3afafa1517d2842 /src/org/traccar
parentb91d1b41343a1d3d8625c1dc42c9c7d2244fb903 (diff)
downloadtrackermap-server-6ef76c9e22ada4ed5d89d0a3bd43d759b56bebe0.tar.gz
trackermap-server-6ef76c9e22ada4ed5d89d0a3bd43d759b56bebe0.tar.bz2
trackermap-server-6ef76c9e22ada4ed5d89d0a3bd43d759b56bebe0.zip
Missed groupGeofences read lock
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/database/GeofenceManager.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/org/traccar/database/GeofenceManager.java b/src/org/traccar/database/GeofenceManager.java
index 2994920d9..930008082 100644
--- a/src/org/traccar/database/GeofenceManager.java
+++ b/src/org/traccar/database/GeofenceManager.java
@@ -170,6 +170,7 @@ public class GeofenceManager {
Collection<DeviceGeofence> databaseDeviceGeofences = dataManager.getDeviceGeofences();
Collection<Device> allDevices = Context.getDeviceManager().getAllDevices();
+ groupGeofencesLock.readLock().lock();
deviceGeofencesLock.writeLock().lock();
try {
deviceGeofences.clear();
@@ -214,6 +215,7 @@ public class GeofenceManager {
} finally {
deviceGeofencesLock.writeLock().unlock();
+ groupGeofencesLock.readLock().unlock();
}
} catch (SQLException error) {