Fix concurrent modification
(cherry picked from commit e0d4dd61a1271c007095f35fb937dd0d887f7ae2)
This commit is contained in:
parent
c79651fc57
commit
666791c1df
1 changed files with 1 additions and 1 deletions
|
@ -652,7 +652,7 @@ public class Account extends AbstractEntity implements AvatarService.Avatarable
|
|||
}
|
||||
|
||||
public void refreshCapsFor(Contact contact) {
|
||||
for (final var k : gateways.keySet()) {
|
||||
for (final var k : new HashSet<>(gateways.keySet())) {
|
||||
gateways.remove(k, contact);
|
||||
}
|
||||
for (final var p : contact.getPresences().getPresences()) {
|
||||
|
|
Loading…
Reference in a new issue