Skip to content

Commit 359c42b

Browse files
committed
Fix perpetual auto-recovery problem
1 parent d7abf22 commit 359c42b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

projects/RabbitMQ.Client/client/impl/AutorecoveringConnection.Recording.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ internal void DeleteAutoDeleteExchange(string exchangeName)
8282
if (!AnyBindingsOnExchange(exchangeName))
8383
{
8484
// last binding where this exchange is the source is gone, remove recorded exchange if it is auto-deleted.
85-
_recordedExchanges.Remove(exchangeName);
85+
DeleteRecordedExchange(exchangeName);
8686
}
8787
}
8888
}
@@ -209,7 +209,7 @@ void DeleteAutoDeleteQueue(string queue)
209209
// last consumer on this connection is gone, remove recorded queue if it is auto-deleted.
210210
if (!AnyConsumersOnQueue(queue))
211211
{
212-
_recordedQueues.Remove(queue);
212+
DeleteRecordedQueue(queue);
213213
}
214214
}
215215
}

0 commit comments

Comments
 (0)