mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUAC-1132: Set of active connections should be synchronized.
This commit is contained in:
@@ -63,7 +63,7 @@ public class ActiveConnectionMultimap {
|
||||
// Get set of active connection records, creating if necessary
|
||||
Set<ConnectionRecord> connections = records.get(identifier);
|
||||
if (connections == null) {
|
||||
connections = Collections.newSetFromMap(new LinkedHashMap<ConnectionRecord, Boolean>());
|
||||
connections = Collections.synchronizedSet(Collections.newSetFromMap(new LinkedHashMap<ConnectionRecord, Boolean>()));
|
||||
records.put(identifier, connections);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user