From 2cbfa0f2433455bf862e1de0ef5a40d7a8ead511 Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Fri, 27 Jan 2017 09:17:27 +0500 Subject: Clear deviceUsers cache before refresh --- src/org/traccar/database/PermissionsManager.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src/org/traccar') diff --git a/src/org/traccar/database/PermissionsManager.java b/src/org/traccar/database/PermissionsManager.java index 14cc8027a..78589ad88 100644 --- a/src/org/traccar/database/PermissionsManager.java +++ b/src/org/traccar/database/PermissionsManager.java @@ -151,6 +151,7 @@ public class PermissionsManager { Log.warning(error); } + deviceUsers.clear(); for (Map.Entry> entry : devicePermissions.entrySet()) { for (long deviceId : entry.getValue()) { getDeviceUsers(deviceId).add(entry.getKey()); -- cgit v1.2.3