Skip to content

Commit c0178a2

Browse files
authored
Merge pull request #773 from danielmarbach/model-shutdown
Schedule instead of GetAwaiter().GetResult()
2 parents 602450d + 958c876 commit c0178a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projects/client/RabbitMQ.Client/src/client/impl/AsyncConsumerDispatcher.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public void HandleBasicCancel(IBasicConsumer consumer, string consumerTag)
6161
public void HandleModelShutdown(IBasicConsumer consumer, ShutdownEventArgs reason)
6262
{
6363
// the only case where we ignore the shutdown flag.
64-
new ModelShutdown(consumer, reason).Execute(_model).GetAwaiter().GetResult();
64+
Schedule(new ModelShutdown(consumer, reason));
6565
}
6666

6767
private void ScheduleUnlessShuttingDown<TWork>(TWork work)

0 commit comments

Comments
 (0)