Commit 1acb1222 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

SessionData is now thread-safe.

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@8501 b35dd754-fafc-0310-a699-88a17e54d16e
parent 20b26fe2
...@@ -14,7 +14,7 @@ import org.xmpp.packet.Packet; ...@@ -14,7 +14,7 @@ import org.xmpp.packet.Packet;
import java.net.UnknownHostException; import java.net.UnknownHostException;
import java.util.Date; import java.util.Date;
import java.util.Map; import java.util.Map;
import java.util.TreeMap; import java.util.concurrent.ConcurrentHashMap;
/** /**
* The session represents a connection between the server and a client (c2s) or * The session represents a connection between the server and a client (c2s) or
...@@ -83,7 +83,7 @@ public abstract class LocalSession implements Session { ...@@ -83,7 +83,7 @@ public abstract class LocalSession implements Session {
String id = streamID.getID(); String id = streamID.getID();
this.address = new JID(null, serverName, id, true); this.address = new JID(null, serverName, id, true);
this.sessionManager = SessionManager.getInstance(); this.sessionManager = SessionManager.getInstance();
sessionData = new TreeMap<String, Object>(); sessionData = new ConcurrentHashMap<String, Object>();
} }
/** /**
......
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