Skip to content

Commit bcfc454

Browse files
committed
Merge pull request #773 from danielmarbach/model-shutdown
Schedule instead of GetAwaiter().GetResult() (cherry picked from commit c0178a2)
1 parent 3b0ec95 commit bcfc454

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
@@ -59,7 +59,7 @@ public void HandleBasicCancel(IBasicConsumer consumer, string consumerTag)
5959
public void HandleModelShutdown(IBasicConsumer consumer, ShutdownEventArgs reason)
6060
{
6161
// the only case where we ignore the shutdown flag.
62-
new ModelShutdown(consumer, reason).Execute(model).GetAwaiter().GetResult();
62+
Schedule(new ModelShutdown(consumer, reason));
6363
}
6464

6565
private void ScheduleUnlessShuttingDown<TWork>(TWork work)

0 commit comments

Comments
 (0)