mirror of
https://github.com/sshnet/SSH.NET.git
synced 2026-09-10 17:25:51 +00:00
Replace call to WaitOne(TimeSpan) with WaitOne(TimeSpan, Boolean) to make it compartible with .NET 3.5
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user