diff options
author | Abyss777 <abyss@fox5.ru> | 2017-06-13 09:52:55 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2017-06-13 09:52:55 +0500 |
commit | 3cdcce26fded7c88109ff98f7e947902ca116452 (patch) | |
tree | 0e945638f504dac9e3d566b546fc5ce01a3a70da | |
parent | d6e9efc48fca16263d6ac50aa063b1da8f14b125 (diff) | |
download | trackermap-server-3cdcce26fded7c88109ff98f7e947902ca116452.tar.gz trackermap-server-3cdcce26fded7c88109ff98f7e947902ca116452.tar.bz2 trackermap-server-3cdcce26fded7c88109ff98f7e947902ca116452.zip |
Fix managed devices enumerating
-rw-r--r-- | src/org/traccar/database/DeviceManager.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/database/DeviceManager.java b/src/org/traccar/database/DeviceManager.java index 68e2e8262..f2a2dd565 100644 --- a/src/org/traccar/database/DeviceManager.java +++ b/src/org/traccar/database/DeviceManager.java @@ -190,7 +190,7 @@ public class DeviceManager implements IdentityManager { } public Collection<Device> getManagedDevices(long userId) throws SQLException { - Collection<Device> devices = new ArrayList<>(); + Collection<Device> devices = new HashSet<>(); devices.addAll(getDevices(userId)); for (long managedUserId : Context.getPermissionsManager().getUserPermissions(userId)) { devices.addAll(getDevices(managedUserId)); |