Skip to content

Commit

Permalink
[dotnet] Move disposal of ClientWebSocket to correct location
Browse files Browse the repository at this point in the history
  • Loading branch information
jimevans committed Aug 31, 2023
1 parent 4273c4b commit 23cca5e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dotnet/src/webdriver/DevTools/WebSocketConnection.cs
Expand Up @@ -146,6 +146,8 @@ public virtual async Task Stop()
{
await this.dataReceiveTask;
}

this.client.Dispose();
}

/// <summary>
Expand Down Expand Up @@ -268,7 +270,6 @@ private async Task ReceiveData()
}
finally
{
this.client.Dispose();
this.isActive = false;
}
}
Expand Down

0 comments on commit 23cca5e

Please sign in to comment.