Преглед на файлове

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