mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 16:49:44 +02:00
FpDebug: Additional security for b1a29e7546
"race condition during exit". Defer the state, till after the ProcessMessages
(cherry picked from commit 9285940e2b
)
This commit is contained in:
parent
c1d338eaaf
commit
b94f2d82e8
@ -3565,9 +3565,9 @@ begin
|
||||
{$POP}
|
||||
LockRelease;
|
||||
try
|
||||
SetState(dsStop);
|
||||
StopAllWorkers;
|
||||
FreeDebugThread;
|
||||
SetState(dsStop); // after FreeDebugThread, which does ProcessMessages
|
||||
finally
|
||||
UnlockRelease;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user