From ab33f73d0781e4c788ef03238d62b76dbe324169 Mon Sep 17 00:00:00 2001 From: Ansgar Becker Date: Fri, 20 Oct 2023 07:14:35 +0200 Subject: [PATCH] Fix crash when trying to stop current query and the helper connection cannot connect for some reason. --- source/main.pas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/main.pas b/source/main.pas index b618339b..d0164385 100644 --- a/source/main.pas +++ b/source/main.pas @@ -13448,9 +13448,9 @@ begin Killer.Parameters := ActiveConnection.Parameters; Killer.LogPrefix := _('Helper connection'); Killer.OnLog := LogSQL; - Killer.Active := True; - KillCommand := Killer.GetSQLSpecifity(spKillQuery, [ActiveConnection.ThreadId]); try + Killer.Active := True; + KillCommand := Killer.GetSQLSpecifity(spKillQuery, [ActiveConnection.ThreadId]); Killer.Query(KillCommand); except on E:EDbError do begin