From 6da14aded9775469a044d36e9a8ce5d8483f9003 Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Tue, 14 Jun 2016 22:34:29 +0500 Subject: Current device geofences should survive cache update --- src/org/traccar/database/DataManager.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/org') diff --git a/src/org/traccar/database/DataManager.java b/src/org/traccar/database/DataManager.java index 2b09e2fb0..a32d31d68 100644 --- a/src/org/traccar/database/DataManager.java +++ b/src/org/traccar/database/DataManager.java @@ -154,6 +154,10 @@ public class DataManager implements IdentityManager { devicesById.put(device.getId(), device); devicesByUniqueId.put(device.getUniqueId(), device); } + GeofenceManager geofenceManager = Context.getGeofenceManager(); + if (geofenceManager != null) { + geofenceManager.refresh(); + } devicesLastUpdate = System.currentTimeMillis(); } } finally { -- cgit v1.2.3