Synchronize chats map.

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2994 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Matt Tucker 2005-10-24 19:37:37 +00:00 committed by matt
parent a43b8a1cdb
commit c2cc92943a
1 changed files with 2 additions and 5 deletions

View File

@ -38,10 +38,7 @@ import java.lang.ref.WeakReference;
import java.lang.reflect.Constructor;
import java.net.Socket;
import java.net.UnknownHostException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.*;
/**
* Creates a connection to a XMPP server. A simple use of this API might
@ -130,7 +127,7 @@ public class XMPPConnection {
* does not interfere with garbage collection. The map of chats must be stored
* with each connection.
*/
Map chats = new HashMap();
Map chats = Collections.synchronizedMap(new HashMap());
/**
* Creates a new connection to the specified XMPP server. A DNS SRV lookup will be