aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-07-01 10:01:45 -0700
committerAnton Tananaev <anton@traccar.org>2022-07-01 10:01:45 -0700
commit8c4499a8fa5e30a498d9357b16b56cd65fbe1e39 (patch)
tree8472d786a3337a5ab7539fac49cfe95e7885a5de /src/main/java
parent771f334d686b252b3b6975beb758c3833e85f0f2 (diff)
downloadtrackermap-server-8c4499a8fa5e30a498d9357b16b56cd65fbe1e39.tar.gz
trackermap-server-8c4499a8fa5e30a498d9357b16b56cd65fbe1e39.tar.bz2
trackermap-server-8c4499a8fa5e30a498d9357b16b56cd65fbe1e39.zip
Fix duplicated users
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/traccar/session/cache/CacheManager.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/session/cache/CacheManager.java b/src/main/java/org/traccar/session/cache/CacheManager.java
index 9d1db7d14..cd71f5f9f 100644
--- a/src/main/java/org/traccar/session/cache/CacheManager.java
+++ b/src/main/java/org/traccar/session/cache/CacheManager.java
@@ -249,6 +249,7 @@ public class CacheManager implements BroadcastInterface {
}
private void invalidateUsers() throws StorageException {
+ notificationUsers.clear();
Map<Long, User> users = new HashMap<>();
storage.getObjects(User.class, new Request(new Columns.All()))
.forEach(user -> users.put(user.getId(), user));