diff options
author | Anton Tananaev <anton@traccar.org> | 2022-07-01 10:01:45 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-07-01 10:01:45 -0700 |
commit | 8c4499a8fa5e30a498d9357b16b56cd65fbe1e39 (patch) | |
tree | 8472d786a3337a5ab7539fac49cfe95e7885a5de /src/main/java/org/traccar/session/cache | |
parent | 771f334d686b252b3b6975beb758c3833e85f0f2 (diff) | |
download | trackermap-server-8c4499a8fa5e30a498d9357b16b56cd65fbe1e39.tar.gz trackermap-server-8c4499a8fa5e30a498d9357b16b56cd65fbe1e39.tar.bz2 trackermap-server-8c4499a8fa5e30a498d9357b16b56cd65fbe1e39.zip |
Fix duplicated users
Diffstat (limited to 'src/main/java/org/traccar/session/cache')
-rw-r--r-- | src/main/java/org/traccar/session/cache/CacheManager.java | 1 |
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)); |