From 0fc94919278fdb4f8eaa315742482124404b00aa Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Mon, 23 Mar 2020 23:31:42 -0500 Subject: [PATCH] Error exit code already set. Remove extra shutdown call --- DS4Windows/App.xaml.cs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/DS4Windows/App.xaml.cs b/DS4Windows/App.xaml.cs index e07647c..ea3dea1 100644 --- a/DS4Windows/App.xaml.cs +++ b/DS4Windows/App.xaml.cs @@ -188,7 +188,7 @@ namespace DS4WinWPF { Dispatcher.Invoke(() => { - CleanShutdown(1); + CleanShutdown(); }); } } @@ -471,7 +471,7 @@ namespace DS4WinWPF CleanShutdown(); } - private void CleanShutdown(int exitCode = 0) + private void CleanShutdown() { if (runShutdown) { @@ -503,11 +503,6 @@ namespace DS4WinWPF LogManager.Flush(); LogManager.Shutdown(); - - if (exitCode != 0) - { - Current.Shutdown(exitCode); - } } } }