Added extra full shutdown check.

Fixes exclusive mode issues for non-admin users. Related to issue #1071.
This commit is contained in:
Travis Nickles 2020-01-28 09:12:08 -06:00
parent 05b96a5c0a
commit cb871f7606

View File

@ -430,11 +430,14 @@ namespace DS4WinWPF
} }
private void Application_Exit(object sender, ExitEventArgs e) private void Application_Exit(object sender, ExitEventArgs e)
{
if (runShutdown)
{ {
Logger logger = logHolder.Logger; Logger logger = logHolder.Logger;
logger.Info("Request App Shutdown"); logger.Info("Request App Shutdown");
CleanShutdown(); CleanShutdown();
} }
}
private void Application_SessionEnding(object sender, SessionEndingCancelEventArgs e) private void Application_SessionEnding(object sender, SessionEndingCancelEventArgs e)
{ {