Removed use of cancellation token

This commit is contained in:
Tom
2026-01-03 05:13:01 +00:00
parent ac967dcb1d
commit 0131cca278
2 changed files with 10 additions and 18 deletions

View File

@@ -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);