mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-05 11:38:04 +02:00
Backport trunk r53890 #714bd8024f. Prevent freeze in converter.
git-svn-id: branches/fixes_1_6@53962 -
This commit is contained in:
parent
a51a45d3d2
commit
34ee510a75
@ -971,7 +971,8 @@ end;
|
||||
|
||||
procedure TConvertSettingsForm.CancelButtonClick(Sender: TObject);
|
||||
begin
|
||||
if Assigned(fCacheUnitsThread) then begin
|
||||
if Assigned(fCacheUnitsThread) and fThreadStarted then
|
||||
begin
|
||||
(fCacheUnitsThread as TCacheUnitsThread).Searcher.Stop;
|
||||
fCacheUnitsThread.WaitFor;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user