Error exit code already set. Remove extra shutdown call

This commit is contained in:
Travis Nickles 2020-03-23 23:31:42 -05:00
parent 529adf9f27
commit 0fc9491927

View File

@ -188,7 +188,7 @@ namespace DS4WinWPF
{ {
Dispatcher.Invoke(() => Dispatcher.Invoke(() =>
{ {
CleanShutdown(1); CleanShutdown();
}); });
} }
} }
@ -471,7 +471,7 @@ namespace DS4WinWPF
CleanShutdown(); CleanShutdown();
} }
private void CleanShutdown(int exitCode = 0) private void CleanShutdown()
{ {
if (runShutdown) if (runShutdown)
{ {
@ -503,11 +503,6 @@ namespace DS4WinWPF
LogManager.Flush(); LogManager.Flush();
LogManager.Shutdown(); LogManager.Shutdown();
if (exitCode != 0)
{
Current.Shutdown(exitCode);
}
} }
} }
} }