1
0
Fork 1

Fix concurrent modification

(cherry picked from commit e0d4dd61a1271c007095f35fb937dd0d887f7ae2)
This commit is contained in:
Stephen Paul Weber 2024-09-15 00:16:17 -05:00 committed by Arne
parent c79651fc57
commit 666791c1df

View file

@ -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()) {