From cec50702b14453a9e213ac57d3fc04af91225a53 Mon Sep 17 00:00:00 2001 From: Quajak Date: Sun, 25 Oct 2020 15:22:21 +0100 Subject: [PATCH] Actually close builder if already running --- source/Cosmos.Build.Builder/App.xaml.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/source/Cosmos.Build.Builder/App.xaml.cs b/source/Cosmos.Build.Builder/App.xaml.cs index 00c4160ad..7f2e3eea8 100644 --- a/source/Cosmos.Build.Builder/App.xaml.cs +++ b/source/Cosmos.Build.Builder/App.xaml.cs @@ -20,6 +20,7 @@ namespace Cosmos.Build.Builder if (Process.GetProcessesByName("Cosmos.Build.Builder").Skip(1).Any()) { ShowErrorMessageBox("Cannot run more than 1 instance of builder at the same time!"); + Current.Shutdown(); return; }