aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-03-21 17:16:56 +0500
committerAbyss777 <abyss@fox5.ru>2017-03-21 17:16:56 +0500
commitb2584fc441a7dde87f97c66e23a7cabd9591fd13 (patch)
tree20e78ca223c07664a5370b79ab5b15daf83925a1 /src/org
parent8ab5a5a461ed35cd938aa59bb4070e82fbd9b93e (diff)
downloadtrackermap-server-b2584fc441a7dde87f97c66e23a7cabd9591fd13.tar.gz
trackermap-server-b2584fc441a7dde87f97c66e23a7cabd9591fd13.tar.bz2
trackermap-server-b2584fc441a7dde87f97c66e23a7cabd9591fd13.zip
Set status to offline for new device
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/database/DeviceManager.java1
1 files changed, 1 insertions, 0 deletions
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()) {