1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-12-23 02:58:00 +01:00

Fixed concurrency error.

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@6303 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Gaston Dombiak 2006-12-04 23:52:59 +00:00 committed by gato
parent 58a3b60570
commit 07f89a78ac

View file

@ -587,7 +587,7 @@ public class Roster implements ConnectionListener {
Map<String, Presence> userPresences; Map<String, Presence> userPresences;
// Get the user presence map // Get the user presence map
if (presenceMap.get(key) == null) { if (presenceMap.get(key) == null) {
userPresences = new HashMap<String, Presence>(); userPresences = new ConcurrentHashMap<String, Presence>();
presenceMap.put(key, userPresences); presenceMap.put(key, userPresences);
} }
else { else {