From b2584fc441a7dde87f97c66e23a7cabd9591fd13 Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Tue, 21 Mar 2017 17:16:56 +0500 Subject: Set status to offline for new device --- src/org/traccar/database/DeviceManager.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src/org/traccar') diff --git a/src/org/traccar/database/DeviceManager.java b/src/org/traccar/database/DeviceManager.java index ae5784b01..a6caf0e47 100644 --- a/src/org/traccar/database/DeviceManager.java +++ b/src/org/traccar/database/DeviceManager.java @@ -202,6 +202,7 @@ 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()) { -- cgit v1.2.3