diff --git a/src/AppInstallerCLICore/ShutdownMonitoring.cpp b/src/AppInstallerCLICore/ShutdownMonitoring.cpp index cb581116ec..c7122bf66f 100644 --- a/src/AppInstallerCLICore/ShutdownMonitoring.cpp +++ b/src/AppInstallerCLICore/ShutdownMonitoring.cpp @@ -101,6 +101,8 @@ namespace AppInstaller::ShutdownMonitoring TerminationSignalHandler::~TerminationSignalHandler() { + SetConsoleCtrlHandler(StaticCtrlHandlerFunction, FALSE); + // std::thread requires that any managed thread (joinable) be joined or detached before destructing if (m_windowThread.joinable()) {