Move Log call before starting application (#1453)

This commit is contained in:
Justin Kotalik 2018-09-28 08:53:32 -07:00 committed by GitHub
parent e225a7ba09
commit 45a52ebff5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -129,6 +129,8 @@ IN_PROCESS_APPLICATION::LoadManagedApplication()
FALSE, // not set
nullptr)); // name
LOG_INFO(L"Waiting for initialization");
m_workerThread = std::thread([](std::unique_ptr<IN_PROCESS_APPLICATION, IAPPLICATION_DELETER> application)
{
LOG_INFO(L"Starting in-process worker thread");
@ -136,8 +138,6 @@ IN_PROCESS_APPLICATION::LoadManagedApplication()
LOG_INFO(L"Stopping in-process worker thread");
}, ::ReferenceApplication(this));
LOG_INFO(L"Waiting for initialization");
const HANDLE waitHandles[2] = { m_pInitializeEvent, m_workerThread.native_handle() };
// Wait for shutdown request