aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 {