aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/database
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2016-06-15 16:27:49 +0500
committerAbyss777 <abyss@fox5.ru>2016-06-15 16:27:49 +0500
commit906276ac3f1e5b76abbec3632357f9c8c7163b21 (patch)
tree8b5cd30a588d629dd1906f18e5643e88da640ed3 /src/org/traccar/database
parent7933e79e708792569b7dade228f8642392978141 (diff)
downloadtrackermap-server-906276ac3f1e5b76abbec3632357f9c8c7163b21.tar.gz
trackermap-server-906276ac3f1e5b76abbec3632357f9c8c7163b21.tar.bz2
trackermap-server-906276ac3f1e5b76abbec3632357f9c8c7163b21.zip
Use variables
Diffstat (limited to 'src/org/traccar/database')
-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));
}
}
}