Skip to content

Commit 834decb

Browse files
committed
Update Broker.cs
1 parent a50e62d commit 834decb

File tree

1 file changed

+2
-2
lines changed
  • dotnet/src/webdriver/BiDi/Communication

1 file changed

+2
-2
lines changed

dotnet/src/webdriver/BiDi/Communication/Broker.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,9 @@ private async Task ReceiveMessagesAsync(CancellationToken cancellationToken)
132132
ProcessReceivedMessage(data);
133133
}
134134
}
135-
catch (Exception ex)
135+
catch (Exception ex) when (ex is not OperationCanceledException)
136136
{
137-
if (cancellationToken.IsCancellationRequested is false && _logger.IsEnabled(LogEventLevel.Error))
137+
if (_logger.IsEnabled(LogEventLevel.Error))
138138
{
139139
_logger.Error($"Couldn't process received BiDi remote message: {ex}");
140140
}

0 commit comments

Comments
 (0)