File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
projects/RabbitMQ.Client/client/impl Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ private async Task MainLoop()
47
47
{
48
48
try
49
49
{
50
- await ReceiveLoop ( ) ;
50
+ await ReceiveLoop ( ) . ConfigureAwait ( false ) ;
51
51
}
52
52
catch ( EndOfStreamException eose )
53
53
{
@@ -56,7 +56,7 @@ private async Task MainLoop()
56
56
}
57
57
catch ( HardProtocolException hpe )
58
58
{
59
- await HardProtocolExceptionHandler ( hpe ) ;
59
+ await HardProtocolExceptionHandler ( hpe ) . ConfigureAwait ( false ) ;
60
60
}
61
61
catch ( Exception ex )
62
62
{
@@ -70,7 +70,7 @@ private async Task ReceiveLoop()
70
70
{
71
71
while ( ! _closed )
72
72
{
73
- InboundFrame frame = await _frameHandler . ReadFrame ( ) ;
73
+ InboundFrame frame = await _frameHandler . ReadFrame ( ) . ConfigureAwait ( false ) ;
74
74
NotifyHeartbeatListener ( ) ;
75
75
76
76
bool shallReturn = true ;
@@ -151,7 +151,7 @@ private async Task HardProtocolExceptionHandler(HardProtocolException hpe)
151
151
_session0 . Transmit ( in cmd ) ;
152
152
if ( hpe . CanShutdownCleanly )
153
153
{
154
- await ClosingLoop ( ) ;
154
+ await ClosingLoop ( ) . ConfigureAwait ( false ) ;
155
155
}
156
156
}
157
157
catch ( IOException ioe )
@@ -174,7 +174,7 @@ private async Task ClosingLoop()
174
174
{
175
175
_frameHandler . ReadTimeout = TimeSpan . Zero ;
176
176
// Wait for response/socket closure or timeout
177
- await ReceiveLoop ( ) ;
177
+ await ReceiveLoop ( ) . ConfigureAwait ( false ) ;
178
178
}
179
179
catch ( ObjectDisposedException ode )
180
180
{
You can’t perform that action at this time.
0 commit comments