aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/database/DataManager.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/org/traccar/database/DataManager.java b/src/org/traccar/database/DataManager.java
index a530399c7..860bf1b84 100644
--- a/src/org/traccar/database/DataManager.java
+++ b/src/org/traccar/database/DataManager.java
@@ -156,10 +156,9 @@ public class DataManager implements IdentityManager {
devicesById.put(device.getId(), device);
devicesByUniqueId.put(device.getUniqueId(), device);
if (connectionManager != null && geofenceManager != null) {
- Position lastPosition = Context.getConnectionManager().getLastPosition(device.getId());
+ Position lastPosition = connectionManager.getLastPosition(device.getId());
if (lastPosition != null) {
- device.setGeofenceIds(Context.getGeofenceManager()
- .getCurrentDeviceGeofences(lastPosition));
+ device.setGeofenceIds(geofenceManager.getCurrentDeviceGeofences(lastPosition));
}
}
}