mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUACAMOLE-38: Use ConcurrentHashMap for threadsafety.
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
|
||||
package org.apache.guacamole.auth.quickconnect;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
import java.util.Map;
|
||||
import java.util.concurrent.atomic.AtomicInteger;
|
||||
import org.apache.guacamole.GuacamoleException;
|
||||
@@ -45,7 +45,7 @@ public class QuickConnectDirectory extends SimpleDirectory<Connection> {
|
||||
* The connections to store.
|
||||
*/
|
||||
private final Map<String, Connection> connections =
|
||||
new HashMap<String, Connection>();
|
||||
new ConcurrentHashMap<String, Connection>();
|
||||
|
||||
/**
|
||||
* The root connection group for this directory.
|
||||
|
Reference in New Issue
Block a user