Skip to content

Commit 500120b

Browse files
Merge pull request #121 from spatula75/rabbitmq-java-client-120
rabbitmq-java-client #120: unsynchronized access to recordedBindings gives undesired results
2 parents c49ac48 + 58c2e66 commit 500120b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/com/rabbitmq/client/impl/recovery/AutorecoveringConnection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,7 @@ boolean hasMoreConsumersOnQueue(Collection<RecordedConsumer> consumers, String q
766766
return result;
767767
}
768768

769-
Set<RecordedBinding> removeBindingsWithDestination(String s) {
769+
synchronized Set<RecordedBinding> removeBindingsWithDestination(String s) {
770770
Set<RecordedBinding> result = new HashSet<RecordedBinding>();
771771
for (Iterator<RecordedBinding> it = this.recordedBindings.iterator(); it.hasNext(); ) {
772772
RecordedBinding b = it.next();

0 commit comments

Comments
 (0)