]> granicus.if.org Git - icinga2/commitdiff
CheckerComponent#Stop(): log after actually being stopped
authorAlexander A. Klimov <alexander.klimov@icinga.com>
Thu, 24 Jan 2019 12:55:17 +0000 (13:55 +0100)
committerAlexander A. Klimov <alexander.klimov@icinga.com>
Thu, 24 Jan 2019 12:55:17 +0000 (13:55 +0100)
lib/checker/checkercomponent.cpp

index cde975b7251bf1b029c11cacf5c17c8f9f4b09f5..c14259b88b1bc1d101f6c3b5c134ad1f3eaddb2a 100644 (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);
 }