فهرست منبع

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