diff options
author | Abyss777 <abyss@fox5.ru> | 2016-07-19 17:03:00 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2016-07-19 17:03:00 +0500 |
commit | 6ef76c9e22ada4ed5d89d0a3bd43d759b56bebe0 (patch) | |
tree | 6b73770f8e8e27051dc0efadd3afafa1517d2842 /src | |
parent | b91d1b41343a1d3d8625c1dc42c9c7d2244fb903 (diff) | |
download | traccar-server-6ef76c9e22ada4ed5d89d0a3bd43d759b56bebe0.tar.gz traccar-server-6ef76c9e22ada4ed5d89d0a3bd43d759b56bebe0.tar.bz2 traccar-server-6ef76c9e22ada4ed5d89d0a3bd43d759b56bebe0.zip |
Missed groupGeofences read lock
Diffstat (limited to 'src')
-rw-r--r-- | src/org/traccar/database/GeofenceManager.java | 2 |
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) { |