CheckerComponent#Stop(): log after actually being stopped

This commit is contained in:
Alexander A. Klimov 2019-01-24 13:55:17 +01:00
parent f0e12ff63c
commit b81aa6af3a
1 changed files with 3 additions and 3 deletions

View File

@ -84,9 +84,6 @@ void CheckerComponent::Start(bool runtimeCreated)
void CheckerComponent::Stop(bool runtimeRemoved)
{
Log(LogInformation, "CheckerComponent")
<< "'" << GetName() << "' stopped.";
{
boost::mutex::scoped_lock lock(m_Mutex);
m_Stopped = true;
@ -96,6 +93,9 @@ void CheckerComponent::Stop(bool runtimeRemoved)
m_ResultTimer->Stop();
m_Thread.join();
Log(LogInformation, "CheckerComponent")
<< "'" << GetName() << "' stopped.";
ObjectImpl<CheckerComponent>::Stop(runtimeRemoved);
}