mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 13:39:30 +02:00
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:
parent
84b7bb2ca4
commit
30569f5fe8
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user