소스 검색

Remove CancelConnectAsync - which is .NET 4.0+ only - as dispose of the socket has the same effect.

drieseng 9 년 전
부모
커밋
7a474e6472
1개의 변경된 파일0개의 추가작업 그리고 2개의 파일을 삭제
  1. 0 2
      src/Renci.SshNet/Abstractions/SocketAbstraction.cs

+ 0 - 2
src/Renci.SshNet/Abstractions/SocketAbstraction.cs

@@ -66,8 +66,6 @@ namespace Renci.SshNet.Abstractions
                 {
                     // avoid ObjectDisposedException in ConnectCompleted
                     args.Completed -= ConnectCompleted;
-                    // avoid leaking threads and /Device/Afd handles
-                    Socket.CancelConnectAsync(args);
                     // dispose Socket
                     socket.Dispose();
                     // dispose ManualResetEvent