diff --git a/TcpDotNet/ProtocolClient.cs b/TcpDotNet/ProtocolClient.cs index 550368e..b9d362c 100644 --- a/TcpDotNet/ProtocolClient.cs +++ b/TcpDotNet/ProtocolClient.cs @@ -82,7 +82,7 @@ public sealed class ProtocolClient : ClientNode BaseSocket = new Socket(remoteEP.AddressFamily, SocketType.Stream, ProtocolType.Tcp); try { - await Task.Run(() => BaseSocket.ConnectAsync(remoteEP, cancellationToken), cancellationToken); + await BaseSocket.ConnectAsync(remoteEP, cancellationToken); } catch {