From 03c9523001295e466cf508802712e13bf59fe7fa Mon Sep 17 00:00:00 2001 From: LukePulverenti Luke Pulverenti luke pulverenti Date: Sun, 19 Aug 2012 18:50:54 -0400 Subject: [PATCH] Comments --- MediaBrowser.Common/UI/BaseApplication.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MediaBrowser.Common/UI/BaseApplication.cs b/MediaBrowser.Common/UI/BaseApplication.cs index a6bc7f7e49..6285ca7ae3 100644 --- a/MediaBrowser.Common/UI/BaseApplication.cs +++ b/MediaBrowser.Common/UI/BaseApplication.cs @@ -16,6 +16,7 @@ namespace MediaBrowser.Common.UI protected async override void OnStartup(StartupEventArgs e) { + // Without this the app will shutdown after the splash screen closes this.ShutdownMode = ShutdownMode.OnExplicitShutdown; await LoadKernel(); @@ -48,6 +49,8 @@ namespace MediaBrowser.Common.UI { MessageBox.Show("There was an error launching Media Browser: " + ex.Message); splash.Close(); + + // Shutdown the app with an error code Shutdown(1); } }