1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-01 01:35:59 +01:00

SMACK-290: Fix deadlock while initializing roster

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@11620 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Günther Niess 2010-02-11 14:26:28 +00:00 committed by niess
parent 539f652443
commit 691c433b3a

View file

@ -833,8 +833,10 @@ public class Roster {
// Find the list of groups that the user currently belongs to. // Find the list of groups that the user currently belongs to.
List<String> currentGroupNames = new ArrayList<String>(); List<String> currentGroupNames = new ArrayList<String>();
for (RosterGroup rosterGroup : entry.getGroups()) { for (RosterGroup group: getGroups()) {
currentGroupNames.add(rosterGroup.getName()); if (group.contains(entry)) {
currentGroupNames.add(group.getName());
}
} }
// If the packet is not of the type REMOVE then add the entry to the groups // If the packet is not of the type REMOVE then add the entry to the groups