From 0bda01815c51b1f1e1d3e3eda592219eb39bf78b Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Mon, 11 Jul 2016 14:25:27 +0500 Subject: - Split geofence refresh on 3 functions - Enable back groupsCache --- src/org/traccar/database/DataManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/org/traccar/database/DataManager.java') diff --git a/src/org/traccar/database/DataManager.java b/src/org/traccar/database/DataManager.java index 2d3b75db7..b3f24383f 100644 --- a/src/org/traccar/database/DataManager.java +++ b/src/org/traccar/database/DataManager.java @@ -241,7 +241,7 @@ public class DataManager implements IdentityManager { } public Group getGroupById(long id) { - /*boolean forceUpdate; + boolean forceUpdate; groupsLock.readLock().lock(); try { forceUpdate = !groupsById.containsKey(id); @@ -253,7 +253,7 @@ public class DataManager implements IdentityManager { updateGroupCache(forceUpdate); } catch (SQLException e) { Log.warning(e); - }*/ + } groupsLock.readLock().lock(); try { -- cgit v1.2.3