diff options
author | Abyss777 <abyss@fox5.ru> | 2016-06-15 16:27:49 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2016-06-15 16:27:49 +0500 |
commit | 906276ac3f1e5b76abbec3632357f9c8c7163b21 (patch) | |
tree | 8b5cd30a588d629dd1906f18e5643e88da640ed3 /src/org | |
parent | 7933e79e708792569b7dade228f8642392978141 (diff) | |
download | trackermap-server-906276ac3f1e5b76abbec3632357f9c8c7163b21.tar.gz trackermap-server-906276ac3f1e5b76abbec3632357f9c8c7163b21.tar.bz2 trackermap-server-906276ac3f1e5b76abbec3632357f9c8c7163b21.zip |
Use variables
Diffstat (limited to 'src/org')
-rw-r--r-- | src/org/traccar/database/DataManager.java | 5 |
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)); } } } |