From 3cdcce26fded7c88109ff98f7e947902ca116452 Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Tue, 13 Jun 2017 09:52:55 +0500 Subject: Fix managed devices enumerating --- src/org/traccar/database/DeviceManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 getManagedDevices(long userId) throws SQLException { - Collection devices = new ArrayList<>(); + Collection devices = new HashSet<>(); devices.addAll(getDevices(userId)); for (long managedUserId : Context.getPermissionsManager().getUserPermissions(userId)) { devices.addAll(getDevices(managedUserId)); -- cgit v1.2.3