1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-12-22 20:47:57 +01:00

Merge pull request #275 from spslinger/fix-getPresence-ConcurrentModificationException

Fix getPresence ConcurrentModificationException
This commit is contained in:
Florian Schmaus 2018-10-11 14:11:02 +02:00 committed by GitHub
commit 85731fbe3e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -951,8 +951,7 @@ public final class Roster extends Manager {
// This is used in case no available presence is found
Presence unavailable = null;
for (Resourcepart resource : userPresences.keySet()) {
Presence p = userPresences.get(resource);
for (Presence p : userPresences.values()) {
if (!p.isAvailable()) {
unavailable = p;
continue;