From: Gunnar Beutner Date: Wed, 30 Mar 2016 07:58:01 +0000 (+0200) Subject: Fix: FatalError() returns when called before Application.Run X-Git-Tag: v2.5.0~435 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2ffbd1a161395e379a55a942f04b6319c563c664;p=icinga2 Fix: FatalError() returns when called before Application.Run fixes #11475 --- 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;