From 8220a4f928841b872649367c536876b7d8dc6143 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Mon, 18 Jan 2016 12:39:49 +1300 Subject: Add flag to ignore unknown devices --- src/org/traccar/database/DataManager.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/org/traccar/database/DataManager.java b/src/org/traccar/database/DataManager.java index 094e1f419..73984952e 100644 --- a/src/org/traccar/database/DataManager.java +++ b/src/org/traccar/database/DataManager.java @@ -135,7 +135,8 @@ public class DataManager implements IdentityManager { @Override public Device getDeviceByUniqueId(String uniqueId) throws SQLException { - updateDeviceCache(!devicesByUniqueId.containsKey(uniqueId)); + updateDeviceCache( + !devicesByUniqueId.containsKey(uniqueId) && !config.getBoolean("database.ignoreUnknown")); return devicesByUniqueId.get(uniqueId); } -- cgit v1.2.3