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

This commit is contained in:
olegkap_cp
2011-11-16 04:42:11 +00:00
parent 23d3eb8ae7
commit dc2d8ec142
+1 -1
View File
@@ -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);
}