aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/database/DataManager.java
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2016-06-14 22:34:29 +0500
committerAbyss777 <abyss@fox5.ru>2016-06-14 22:34:29 +0500
commit6da14aded9775469a044d36e9a8ce5d8483f9003 (patch)
treeb97f2de906f7818e735c9cdd16b0be0d2482d78a /src/org/traccar/database/DataManager.java
parentb588b3c723cad4629dcecbce8983933f7ff2a255 (diff)
downloadtraccar-server-6da14aded9775469a044d36e9a8ce5d8483f9003.tar.gz
traccar-server-6da14aded9775469a044d36e9a8ce5d8483f9003.tar.bz2
traccar-server-6da14aded9775469a044d36e9a8ce5d8483f9003.zip
Current device geofences should survive cache update
Diffstat (limited to 'src/org/traccar/database/DataManager.java')
-rw-r--r--src/org/traccar/database/DataManager.java4
1 files changed, 4 insertions, 0 deletions
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 {