Commit 20035851 authored by Tom Evans's avatar Tom Evans

Merge pull request #10 from zzglitch/localmucroom-patch-2

OF-781: Fix ConcurrentModificationException in kickPresence
parents 6bec1bc6 4e261499
......@@ -2088,7 +2088,7 @@ public class LocalMUCRoom implements MUCRoom {
*/
private void kickPresence(Presence kickPresence, JID actorJID) {
// Get the role(s) to kick
List<MUCRole> occupants = occupantsByNickname.get(kickPresence.getFrom().getResource().toLowerCase());
List<MUCRole> occupants = new ArrayList<MUCRole>(occupantsByNickname.get(kickPresence.getFrom().getResource().toLowerCase()));
for (MUCRole kickedRole : occupants) {
kickPresence = kickPresence.createCopy();
// Add the actor's JID that kicked this user from the room
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment