Skip to content

Commit

Permalink
Catch WebSocketExceptions in WebSocketGremlinqClient.
Browse files Browse the repository at this point in the history
  • Loading branch information
danielcweber committed Mar 15, 2024
1 parent 2467088 commit 9e82f3e
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 @@ -341,6 +341,10 @@ private async Task Loop(CancellationToken ct)
{
return;
}
catch (WebSocketException)

Check warning on line 344 in src/Providers.Core/Factory/WebSocketGremlinqClientFactory.cs

View check run for this annotation

Codecov / codecov/patch

src/Providers.Core/Factory/WebSocketGremlinqClientFactory.cs#L344

Added line #L344 was not covered by tests
{
return;

Check warning on line 346 in src/Providers.Core/Factory/WebSocketGremlinqClientFactory.cs

View check run for this annotation

Codecov / codecov/patch

src/Providers.Core/Factory/WebSocketGremlinqClientFactory.cs#L346

Added line #L346 was not covered by tests
}

if (_environment.Deserializer.TryTransform(bytes, _environment, out TBinaryMessage? binaryMessage))
{
Expand Down

0 comments on commit 9e82f3e

Please sign in to comment.