소스 검색

Replace call to WaitOne(TimeSpan) with WaitOne(TimeSpan, Boolean) to make it compartible with .NET 3.5

olegkap_cp 14 년 전
부모
커밋
dc2d8ec142
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Renci.SshClient/Renci.SshNet/Session.NET.cs

+ 1 - 1
Renci.SshClient/Renci.SshNet/Session.NET.cs

@@ -28,7 +28,7 @@ namespace Renci.SshNet
             //  Connect socket with specified timeout
             var connectResult = this._socket.BeginConnect(ep, null, null);
 
-            connectResult.AsyncWaitHandle.WaitOne(this.ConnectionInfo.Timeout);
+            connectResult.AsyncWaitHandle.WaitOne(this.ConnectionInfo.Timeout, false);
 
             this._socket.EndConnect(connectResult);
         }