FpDebug: further fix reading pty for console window.

(cherry picked from commit e9099ab0e8)
This commit is contained in:
Martin 2024-02-13 22:31:11 +01:00
parent e44532f395
commit 972e988e00

View File

@ -3424,8 +3424,9 @@ begin
AThread := TFpWaitForConsoleOutputThread(FConsoleOutputThread);
FConsoleOutputThread := nil;
AThread.Terminate;
AThread.DoHasConsoleOutput(0);
AThread.WaitFor;
sleep(50);
AThread.DoHasConsoleOutput(0);
AThread.Free;
end;