Skip to content

Commit 598dcc1

Browse files
committed
Schedule instead of GetAwaiter().GetResult()
1 parent 0edb5ed commit 598dcc1

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)