File tree 1 file changed +4
-4
lines changed
src/main/java/com/rabbitmq/client/impl/recovery
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -783,8 +783,8 @@ RecordedConsumer deleteRecordedConsumer(String consumerTag) {
783
783
}
784
784
785
785
void maybeDeleteRecordedAutoDeleteQueue (String queue ) {
786
- synchronized (this .recordedQueues ) {
787
- synchronized (this .consumers ) {
786
+ synchronized (this .consumers ) {
787
+ synchronized (this .recordedQueues ) {
788
788
if (!hasMoreConsumersOnQueue (this .consumers .values (), queue )) {
789
789
RecordedQueue q = this .recordedQueues .get (queue );
790
790
// last consumer on this connection is gone, remove recorded queue
@@ -798,8 +798,8 @@ void maybeDeleteRecordedAutoDeleteQueue(String queue) {
798
798
}
799
799
800
800
void maybeDeleteRecordedAutoDeleteExchange (String exchange ) {
801
- synchronized (this .recordedExchanges ) {
802
- synchronized (this .consumers ) {
801
+ synchronized (this .consumers ) {
802
+ synchronized (this .recordedExchanges ) {
803
803
if (!hasMoreDestinationsBoundToExchange (Utility .copy (this .recordedBindings ), exchange )) {
804
804
RecordedExchange x = this .recordedExchanges .get (exchange );
805
805
// last binding where this exchange is the source is gone, remove recorded exchange
You can’t perform that action at this time.
0 commit comments