From 1f776fb9bf8366c133e619903dffaef4b7a70f89 Mon Sep 17 00:00:00 2001 From: Riley McArdle Date: Thu, 21 Feb 2013 23:54:29 -0600 Subject: [PATCH] Add timeout to WaitForInputIdle in Connection.Protocol.PuttyBase.Connect(). --- mRemoteV1/Connection/Connection.Protocol.PuttyBase.vb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mRemoteV1/Connection/Connection.Protocol.PuttyBase.vb b/mRemoteV1/Connection/Connection.Protocol.PuttyBase.vb index 6d37da5ce..68738e360 100644 --- a/mRemoteV1/Connection/Connection.Protocol.PuttyBase.vb +++ b/mRemoteV1/Connection/Connection.Protocol.PuttyBase.vb @@ -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)