Add timeout to WaitForInputIdle in Connection.Protocol.PuttyBase.Connect().

This commit is contained in:
Riley McArdle
2013-02-21 23:54:29 -06:00
parent f90eb94484
commit 1f776fb9bf

View File

@@ -156,7 +156,7 @@ Namespace Connection
AddHandler PuttyProcess.Exited, AddressOf ProcessExited
PuttyProcess.Start()
PuttyProcess.WaitForInputIdle()
PuttyProcess.WaitForInputIdle(My.Settings.MaxPuttyWaitTime * 1000)
Dim startTicks As Integer = Environment.TickCount
While PuttyHandle.ToInt32 = 0 And Environment.TickCount < startTicks + (My.Settings.MaxPuttyWaitTime * 1000)