ARTEMIS-289 potential ConcurrentModificationException
This commit is contained in:
parent
8aaed7568b
commit
43b421a588
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue