mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-05 15:57:18 +01:00
Debugger: update thread id
git-svn-id: trunk@42444 -
This commit is contained in:
parent
28b35a4e08
commit
32871c5786
@ -6077,8 +6077,12 @@ end;
|
||||
procedure TThreads.Remove(AThread: TThreadEntry);
|
||||
begin
|
||||
FList.Remove(AThread);
|
||||
if FCurrentThreadId = AThread.ThreadId then
|
||||
FCurrentThreadId := 0;
|
||||
if FCurrentThreadId = AThread.ThreadId then begin
|
||||
if FList.Count > 0 then
|
||||
FCurrentThreadId := Entries[0].ThreadId
|
||||
else
|
||||
FCurrentThreadId := 0;
|
||||
end;
|
||||
AThread.Free;
|
||||
end;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user