GUAC-1132: Set of active connections should be synchronized.
This commit is contained in:
1 parent
5cf48c7498
commit
1e8d68d611
1 file changed
+1
-1
+1
-1
@@ -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