We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0a4cec0 + 2c0b7ee commit ef73206Copy full SHA for ef73206
projects/RabbitMQ.Client/ConsumerDispatching/ConsumerDispatcherChannelBase.cs
@@ -161,8 +161,14 @@ public async Task WaitForShutdownAsync()
161
{
162
try
163
164
- await _reader.Completion
165
- .ConfigureAwait(false);
+ /*
+ * rabbitmq/rabbitmq-dotnet-client#1751
166
+ * Awaiting the work channel reader could deadlock - no idea why.
167
+ * Since we await the consumer dispatcher _worker task,
168
+ * that should suffice.
169
+ *
170
+ * await _reader.Completion.ConfigureAwait(false);
171
+ */
172
await _worker
173
.ConfigureAwait(false);
174
}
0 commit comments