ARTEMIS-289 potential ConcurrentModificationException

This commit is contained in:
jbertram 2015-10-29 13:41:08 -05:00
parent 8aaed7568b
commit 43b421a588
1 changed files with 1 additions and 1 deletions

View File

@ -791,7 +791,7 @@ public class QueueImpl implements Queue {
}
public synchronized Set<Consumer> getConsumers() {
return consumerSet;
return new HashSet<Consumer>(consumerSet);
}
public boolean hasMatchingConsumer(final ServerMessage message) {