Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
lukebakken committed Nov 20, 2023
1 parent 0587bdf commit 7c57728
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions projects/Test/AsyncIntegration/AsyncIntegrationFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,18 @@ public virtual async Task DisposeAsync()
{
try
{
await _channel.CloseAsync();
_conn.Close();
if (_channel != null)
{
await _channel.CloseAsync();
}
await _conn.CloseAsync();
}
finally
{
_channel.Dispose();
if (_channel != null)
{
_channel.Dispose();
}
_conn.Dispose();
_channel = null;
_conn = null;
Expand Down

0 comments on commit 7c57728

Please sign in to comment.