Opkman: Prevent sigsegv while closing the IDE.

git-svn-id: trunk@58391 -
This commit is contained in:
balazs 2018-06-24 09:41:29 +00:00
parent fc480f6059
commit b38a1c3102

View File

@ -131,9 +131,10 @@ begin
PackageDownloader.DownloadJSON(Options.ConTimeOut*1000, True);
Exit;
end;
if (not FBusyUpdating) then
if (Assigned(OnPackageListAvailable)) then
OnPackageListAvailable(Self);
if (not Application.terminated) then
if (not FBusyUpdating) then
if (Assigned(OnPackageListAvailable)) then
OnPackageListAvailable(Self);
end;
end;
end;