diff --git a/DS4Windows/App.xaml.cs b/DS4Windows/App.xaml.cs index 704e2f5..d8af55f 100644 --- a/DS4Windows/App.xaml.cs +++ b/DS4Windows/App.xaml.cs @@ -431,9 +431,12 @@ namespace DS4WinWPF private void Application_Exit(object sender, ExitEventArgs e) { - Logger logger = logHolder.Logger; - logger.Info("Request App Shutdown"); - CleanShutdown(); + if (runShutdown) + { + Logger logger = logHolder.Logger; + logger.Info("Request App Shutdown"); + CleanShutdown(); + } } private void Application_SessionEnding(object sender, SessionEndingCancelEventArgs e)