diff options
| author | Eric Reed <ebr@mediabrowser3.com> | 2013-03-13 17:53:14 -0400 |
|---|---|---|
| committer | Eric Reed <ebr@mediabrowser3.com> | 2013-03-13 17:53:14 -0400 |
| commit | a26ef05e7a310a4821c2397d7fd9b2cac08cc3bc (patch) | |
| tree | c7b86254202b1b24ca75464dc997659b2ba05f1e /MediaBrowser.ServerApplication | |
| parent | 2f64303dcdc3c0a550c66c16584d330bf8c3c174 (diff) | |
| parent | 2ca20eeefcfbd0258a76f4139a8ba68971cf2434 (diff) | |
Merge branch 'master' of https://github.com/MediaBrowser/MediaBrowser
Diffstat (limited to 'MediaBrowser.ServerApplication')
| -rw-r--r-- | MediaBrowser.ServerApplication/App.xaml.cs | 5 |
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> |
