aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/database/DeviceManager.java
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-03-22 17:16:04 +0500
committerAbyss777 <abyss@fox5.ru>2017-03-22 17:16:04 +0500
commitce809d8f053360bd820cf05175101b92a40b8109 (patch)
tree6e28d993f24f4ee9dab7a3e06eb49cf7e3de7848 /src/org/traccar/database/DeviceManager.java
parentb2584fc441a7dde87f97c66e23a7cabd9591fd13 (diff)
downloadtrackermap-server-ce809d8f053360bd820cf05175101b92a40b8109.tar.gz
trackermap-server-ce809d8f053360bd820cf05175101b92a40b8109.tar.bz2
trackermap-server-ce809d8f053360bd820cf05175101b92a40b8109.zip
Move device status initialization to model
Diffstat (limited to 'src/org/traccar/database/DeviceManager.java')
-rw-r--r--src/org/traccar/database/DeviceManager.java1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/org/traccar/database/DeviceManager.java b/src/org/traccar/database/DeviceManager.java
index a6caf0e47..ae5784b01 100644
--- a/src/org/traccar/database/DeviceManager.java
+++ b/src/org/traccar/database/DeviceManager.java
@@ -202,7 +202,6 @@ public class DeviceManager implements IdentityManager {
public void addDevice(Device device) throws SQLException {
dataManager.addDevice(device);
- device.setStatus(Device.STATUS_OFFLINE);
devicesById.put(device.getId(), device);
devicesByUniqueId.put(device.getUniqueId(), device);
if (device.getPhone() != null && !device.getPhone().isEmpty()) {