From 2ffbd1a161395e379a55a942f04b6319c563c664 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Wed, 30 Mar 2016 09:58:01 +0200 Subject: [PATCH] Fix: FatalError() returns when called before Application.Run fixes #11475 --- agent/windows-setup-agent/Program.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/agent/windows-setup-agent/Program.cs b/agent/windows-setup-agent/Program.cs index a36af0ef9..e3e282eb4 100644 --- a/agent/windows-setup-agent/Program.cs +++ b/agent/windows-setup-agent/Program.cs @@ -38,8 +38,10 @@ namespace Icinga string installDir = Program.Icinga2InstallDir; - if (installDir == "") - FatalError(null, "Icinga 2 does not seem to be installed properly."); + if (installDir == "") { + FatalError(null, "Icinga 2 does not seem to be installed properly."); + return; + } Form form; -- 2.40.0