Removed unintended Concurrency side-effect

This commit is contained in:
Rsl1122 2019-08-06 09:01:55 +03:00
parent f0e1b7521d
commit 52456bcc04

View File

@ -42,7 +42,7 @@ public class SessionCache {
}
public static Map<UUID, Session> getActiveSessions() {
return Collections.unmodifiableMap(ACTIVE_SESSIONS);
return Collections.unmodifiableMap(new HashMap<>(ACTIVE_SESSIONS));
}
public static void clear() {