From b38a1c31022db706017872825a8de8568309c257 Mon Sep 17 00:00:00 2001 From: balazs Date: Sun, 24 Jun 2018 09:41:29 +0000 Subject: [PATCH] Opkman: Prevent sigsegv while closing the IDE. git-svn-id: trunk@58391 - --- components/onlinepackagemanager/opkman_intf.pas | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/components/onlinepackagemanager/opkman_intf.pas b/components/onlinepackagemanager/opkman_intf.pas index 81ed0c282d..546f3ba2ec 100644 --- a/components/onlinepackagemanager/opkman_intf.pas +++ b/components/onlinepackagemanager/opkman_intf.pas @@ -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;