Skip to content

Commit

Permalink
WebSocket: Catch the cancellation of the loop in iterator.
Browse files Browse the repository at this point in the history
  • Loading branch information
danielcweber committed Mar 20, 2024
1 parent 05482c2 commit 3b709bd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Providers.Core/Factory/WebSocketGremlinqClientFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,10 @@ private async Task Loop(CancellationToken ct)
{
bytes = await _client.ReceiveAsync(ct);
}
catch (OperationCanceledException)
{
return;
}
catch (InvalidOperationException)
{
return;
Expand Down

0 comments on commit 3b709bd

Please sign in to comment.