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
1 changed files with 1 additions and 1 deletions

View File

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