Skip to content

Commit dc9fdbc

Browse files
committed
add ()
1 parent 16fb735 commit dc9fdbc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/KubernetesClient/Kubernetes.WebSocket.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -346,9 +346,9 @@ protected async Task<WebSocket> StreamConnectAsync(Uri uri, string invocationId
346346
.ConfigureAwait(false);
347347
}
348348
catch (WebSocketException wse) when (wse.WebSocketErrorCode == WebSocketError.HeaderError ||
349-
wse.InnerException is WebSocketException &&
349+
(wse.InnerException is WebSocketException &&
350350
((WebSocketException)wse.InnerException).WebSocketErrorCode ==
351-
WebSocketError.HeaderError)
351+
WebSocketError.HeaderError))
352352
{
353353
// This usually indicates the server sent an error message, like 400 Bad Request. Unfortunately, the WebSocket client
354354
// class doesn't give us a lot of information about what went wrong. So, retry the connection.

0 commit comments

Comments
 (0)