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

This commit is contained in:
Martin 2024-02-14 17:35:30 +01:00
parent 760247b8d1
commit b1a91a2333

View File

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