Commit 99275e6d authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Fixed concurrency problem.

git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@2900 b35dd754-fafc-0310-a699-88a17e54d16e
parent 267f2e02
......@@ -453,7 +453,7 @@ public class SessionManager extends BasicModule {
if (sessions == null || sessions.isEmpty()) {
// First session from the remote server to this server so create a
// new association
List<IncomingServerSession> value = new ArrayList<IncomingServerSession>();
List<IncomingServerSession> value = new CopyOnWriteArrayList<IncomingServerSession>();
value.add(session);
incomingServerSessions.put(hostname, value);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment