We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
DisposeAsync
1 parent 4f01e19 commit 5ae75edCopy full SHA for 5ae75ed
projects/Test/Common/IntegrationFixture.cs
@@ -179,13 +179,13 @@ public virtual async Task DisposeAsync()
179
{
180
try
181
182
- if (_channel != null)
+ if (_conn != null && _conn.IsOpen)
183
184
- await _channel.CloseAsync();
185
- }
+ if (_channel != null && _channel.IsOpen)
+ {
186
+ await _channel.CloseAsync();
187
+ }
188
- if (_conn != null)
- {
189
await _conn.CloseAsync();
190
}
191
0 commit comments