mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-26 03:01:07 +08:00
Increase wait interval for externally run plink.exe from 1 to 4 seconds. Works around having the program left before it could establish a connection. See issue #1914.
This commit is contained in:
@ -521,7 +521,7 @@ begin
|
||||
if CreateProcess(nil, PChar(PlinkCmd), nil, nil, false,
|
||||
CREATE_DEFAULT_ERROR_MODE + NORMAL_PRIORITY_CLASS + CREATE_NO_WINDOW,
|
||||
nil, nil, StartupInfo, FPlinkProcInfo) then begin
|
||||
WaitForSingleObject(FPlinkProcInfo.hProcess, 1000);
|
||||
WaitForSingleObject(FPlinkProcInfo.hProcess, 4000);
|
||||
GetExitCodeProcess(FPlinkProcInfo.hProcess, ExitCode);
|
||||
if ExitCode <> STILL_ACTIVE then
|
||||
raise EDatabaseError.Create('PLink exited unexpected. Command line was:'+CRLF+PlinkCmd);
|
||||
|
Reference in New Issue
Block a user