LazDebuggerFp: further fix reading pty for console window. Remove dangling async call before destroying object.

(cherry picked from commit b1a91a2333)
This commit is contained in:
Martin 2024-02-14 17:35:30 +01:00
parent 84b7bb2ca4
commit 30569f5fe8

View File

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