Removed use of cancellation token
This commit is contained in:
@@ -73,7 +73,7 @@ namespace CommonSocketLibrary.Common
|
||||
while (current < total)
|
||||
{
|
||||
var size = Encoding.UTF8.GetBytes(content.Substring(current), array);
|
||||
await _socket!.SendAsync(array, WebSocketMessageType.Text, current + size >= total, _cts!.Token);
|
||||
await _socket!.SendAsync(array, WebSocketMessageType.Text, current + size >= total, CancellationToken.None);
|
||||
current += size;
|
||||
}
|
||||
_logger.Verbose("TX #" + opcode + ": " + content);
|
||||
|
||||
Reference in New Issue
Block a user