Skip to content
This repository has been archived by the owner on Jul 17, 2023. It is now read-only.

Commit

Permalink
GUACAMOLE-38: Use ConcurrentHashMap for threadsafety.
Browse files Browse the repository at this point in the history
  • Loading branch information
necouchman committed Jun 1, 2018
1 parent 201fbcd commit 555b26a
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -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;
Expand All @@ -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.
Expand Down

0 comments on commit 555b26a

Please sign in to comment.