mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-22 22:32:06 +01:00
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:
parent
a43b8a1cdb
commit
c2cc92943a
1 changed files with 2 additions and 5 deletions
|
@ -38,10 +38,7 @@ import java.lang.ref.WeakReference;
|
||||||
import java.lang.reflect.Constructor;
|
import java.lang.reflect.Constructor;
|
||||||
import java.net.Socket;
|
import java.net.Socket;
|
||||||
import java.net.UnknownHostException;
|
import java.net.UnknownHostException;
|
||||||
import java.util.ArrayList;
|
import java.util.*;
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a connection to a XMPP server. A simple use of this API might
|
* 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
|
* does not interfere with garbage collection. The map of chats must be stored
|
||||||
* with each connection.
|
* 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
|
* Creates a new connection to the specified XMPP server. A DNS SRV lookup will be
|
||||||
|
|
Loading…
Reference in a new issue