From dc2d8ec14291fcee2e891b02c87cafcfdd627dbe Mon Sep 17 00:00:00 2001 From: olegkap_cp Date: Wed, 16 Nov 2011 04:42:11 +0000 Subject: [PATCH] Replace call to WaitOne(TimeSpan) with WaitOne(TimeSpan, Boolean) to make it compartible with .NET 3.5 --- Renci.SshClient/Renci.SshNet/Session.NET.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Renci.SshClient/Renci.SshNet/Session.NET.cs b/Renci.SshClient/Renci.SshNet/Session.NET.cs index e27d20f1..19376428 100644 --- a/Renci.SshClient/Renci.SshNet/Session.NET.cs +++ b/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); }