GUAC-1132: Set of active connections should be synchronized.

This commit is contained in:
Michael Jumper
2015-03-16 16:31:39 -07:00
parent 5cf48c7498
commit 1e8d68d611

View File

@@ -63,7 +63,7 @@ public class ActiveConnectionMultimap {
// Get set of active connection records, creating if necessary // Get set of active connection records, creating if necessary
Set<ConnectionRecord> connections = records.get(identifier); Set<ConnectionRecord> connections = records.get(identifier);
if (connections == null) { if (connections == null) {
connections = Collections.newSetFromMap(new LinkedHashMap<ConnectionRecord, Boolean>()); connections = Collections.synchronizedSet(Collections.newSetFromMap(new LinkedHashMap<ConnectionRecord, Boolean>()));
records.put(identifier, connections); records.put(identifier, connections);
} }