From 45a52ebff53082ee896caa5b92e27da4945b4ec6 Mon Sep 17 00:00:00 2001 From: Justin Kotalik Date: Fri, 28 Sep 2018 08:53:32 -0700 Subject: [PATCH] Move Log call before starting application (#1453) --- .../InProcessRequestHandler/inprocessapplication.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/AspNetCoreModuleV2/InProcessRequestHandler/inprocessapplication.cpp b/src/AspNetCoreModuleV2/InProcessRequestHandler/inprocessapplication.cpp index 7fd934ae87..44d2455251 100644 --- a/src/AspNetCoreModuleV2/InProcessRequestHandler/inprocessapplication.cpp +++ b/src/AspNetCoreModuleV2/InProcessRequestHandler/inprocessapplication.cpp @@ -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 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