From 5216b8faedd2f872a9d2e2f4cb55c998f88d40e3 Mon Sep 17 00:00:00 2001 From: RickDB Date: Thu, 29 Dec 2016 13:47:01 +0100 Subject: [PATCH] Moved uninstall to separate thread. --- JMMServer/MainWindow.xaml.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/JMMServer/MainWindow.xaml.cs b/JMMServer/MainWindow.xaml.cs index 03169c74a..24bd31a0c 100644 --- a/JMMServer/MainWindow.xaml.cs +++ b/JMMServer/MainWindow.xaml.cs @@ -167,7 +167,9 @@ public MainWindow() string path = Path.Combine(ServerSettings.ApplicationPath, "settings.json"); if (File.Exists(path)) { - UninstallJMMServer(); + Thread t = new Thread(UninstallJMMServer); + t.IsBackground = true; + t.Start(); } //HibernatingRhinos.Profiler.Appender.NHibernate.NHibernateProfiler.Initialize();