mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-03 13:40:20 +02:00
LazDebuggerFp: further fix reading pty for console window. Remove dangling async call before destroying object.
This commit is contained in:
parent
760247b8d1
commit
b1a91a2333
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user