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.
1 parent 0587bdf commit 7c57728Copy full SHA for 7c57728
projects/Test/AsyncIntegration/AsyncIntegrationFixture.cs
@@ -96,12 +96,18 @@ public virtual async Task DisposeAsync()
96
{
97
try
98
99
- await _channel.CloseAsync();
100
- _conn.Close();
+ if (_channel != null)
+ {
101
+ await _channel.CloseAsync();
102
+ }
103
+ await _conn.CloseAsync();
104
}
105
finally
106
- _channel.Dispose();
107
108
109
+ _channel.Dispose();
110
111
_conn.Dispose();
112
_channel = null;
113
_conn = null;
0 commit comments