From b7e528c8abcaf0032a7618a0f89ef3568ec5ddaa Mon Sep 17 00:00:00 2001 From: Nick Bolton Date: Sat, 5 Jun 2010 07:44:49 +0000 Subject: [PATCH] Fixed issue 502 --- lib/arch/CArchDaemonWindows.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/arch/CArchDaemonWindows.cpp b/lib/arch/CArchDaemonWindows.cpp index 65aa3909..4d3f04ff 100644 --- a/lib/arch/CArchDaemonWindows.cpp +++ b/lib/arch/CArchDaemonWindows.cpp @@ -701,6 +701,10 @@ CArchDaemonWindows::serviceMain(DWORD argc, LPTSTR* argvIn) // clean up ARCH->closeCondVar(m_serviceCondVar); ARCH->closeMutex(m_serviceMutex); + + // we're going to exit now, so set status to stopped + m_serviceState = SERVICE_STOPPED; + setStatus(m_serviceState, 0, 10000); } void WINAPI