Explorar el Código

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

olegkap_cp hace 14 años
padre
commit
dc2d8ec142
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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);
         }