We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6891013 commit 01d3e0dCopy full SHA for 01d3e0d
src/NBomber.WebSockets/WebSocket.cs
@@ -136,7 +136,7 @@ public async ValueTask<WebSocketResponse> Receive(CancellationToken cancellation
136
{
137
try
138
139
- if (!_cts.IsCancellationRequested)
+ if (_cts.IsCancellationRequested)
140
throw new WebSocketException($"The client is not listening. The client State: {Client.State}");
141
142
var response = await _channel.Reader.ReadAsync(cancellationToken);
0 commit comments