]> granicus.if.org Git - icinga2/commitdiff
Fix: FatalError() returns when called before Application.Run
authorGunnar Beutner <gunnar@beutner.name>
Wed, 30 Mar 2016 07:58:01 +0000 (09:58 +0200)
committerGunnar Beutner <gunnar@beutner.name>
Wed, 30 Mar 2016 07:58:01 +0000 (09:58 +0200)
fixes #11475

agent/windows-setup-agent/Program.cs

index a36af0ef928a723a40e82c34c1542bf1711fe252..e3e282eb4a9bad46203f8ec8b23303f8869d40ec 100644 (file)
@@ -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;