mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-22 22:32:06 +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:
parent
539f652443
commit
691c433b3a
1 changed files with 4 additions and 2 deletions
|
@ -833,8 +833,10 @@ public class Roster {
|
|||
|
||||
// Find the list of groups that the user currently belongs to.
|
||||
List<String> currentGroupNames = new ArrayList<String>();
|
||||
for (RosterGroup rosterGroup : entry.getGroups()) {
|
||||
currentGroupNames.add(rosterGroup.getName());
|
||||
for (RosterGroup group: getGroups()) {
|
||||
if (group.contains(entry)) {
|
||||
currentGroupNames.add(group.getName());
|
||||
}
|
||||
}
|
||||
|
||||
// If the packet is not of the type REMOVE then add the entry to the groups
|
||||
|
|
Loading…
Reference in a new issue