mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 06:59:14 +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}
|
{$POP}
|
||||||
LockRelease;
|
LockRelease;
|
||||||
try
|
try
|
||||||
SetState(dsStop);
|
|
||||||
StopAllWorkers;
|
StopAllWorkers;
|
||||||
FreeDebugThread;
|
FreeDebugThread;
|
||||||
|
SetState(dsStop); // after FreeDebugThread, which does ProcessMessages
|
||||||
finally
|
finally
|
||||||
UnlockRelease;
|
UnlockRelease;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user