aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.ServerApplication/App.xaml.cs
diff options
context:
space:
mode:
authorLukePulverenti <luke.pulverenti@gmail.com>2013-03-13 16:23:46 -0400
committerLukePulverenti <luke.pulverenti@gmail.com>2013-03-13 16:23:46 -0400
commit3dc9cacfad034b11e8ddfb37b24b15499190c6bf (patch)
treeaadfc967712bcf6e8c191decb4a225630625dea2 /MediaBrowser.ServerApplication/App.xaml.cs
parent3303f30f8ab751234b8c85ad1915f53d6ae64a14 (diff)
#51 - Restart the server took long time, and dashboard will die
Diffstat (limited to 'MediaBrowser.ServerApplication/App.xaml.cs')
-rw-r--r--MediaBrowser.ServerApplication/App.xaml.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/MediaBrowser.ServerApplication/App.xaml.cs b/MediaBrowser.ServerApplication/App.xaml.cs
index 0155d0c90..35f203a62 100644
--- a/MediaBrowser.ServerApplication/App.xaml.cs
+++ b/MediaBrowser.ServerApplication/App.xaml.cs
@@ -134,6 +134,11 @@ namespace MediaBrowser.ServerApplication
Logger.ErrorException("UnhandledException", exception);
MessageBox.Show("Unhandled exception: " + exception.Message);
+
+ if (!Debugger.IsAttached)
+ {
+ Environment.Exit(System.Runtime.InteropServices.Marshal.GetHRForException(exception));
+ }
}
/// <summary>