]> granicus.if.org Git - icinga2/commitdiff
Add missing handler for OnActiveChanged
authorGunnar Beutner <gunnar@beutner.name>
Tue, 22 Sep 2015 10:01:34 +0000 (12:01 +0200)
committerGunnar Beutner <gunnar@beutner.name>
Tue, 22 Sep 2015 10:01:34 +0000 (12:01 +0200)
refs #9098

lib/compat/statusdatawriter.cpp
lib/compat/statusdatawriter.hpp

index 0967261018444201980ff06d06563da95411ffae..893f517ec3e0d81d3a32de566dc7d24361c47e77 100644 (file)
@@ -82,7 +82,8 @@ void StatusDataWriter::Start(void)
        m_StatusTimer->Start();
        m_StatusTimer->Reschedule(0);
 
-       ConfigObject::OnVersionChanged.connect(boost::bind(&StatusDataWriter::VersionChangedHandler, this));
+       ConfigObject::OnVersionChanged.connect(boost::bind(&StatusDataWriter::ObjectHandler, this));
+       ConfigObject::OnActiveChanged.connect(boost::bind(&StatusDataWriter::ObjectHandler, this));
 }
 
 void StatusDataWriter::DumpComments(std::ostream& fp, const Checkable::Ptr& checkable)
@@ -867,7 +868,7 @@ void StatusDataWriter::StatusTimerHandler(void)
            << "Writing status.dat file took " << Utility::FormatDuration(Utility::GetTime() - start);
 }
 
-void StatusDataWriter::VersionChangedHandler(void)
+void StatusDataWriter::ObjectHandler(void)
 {
        m_ObjectsCacheOutdated = true;
 }
index ab1dab0c89a54ee8045ca67fc316ee16019d1326..c6ee85a9ce8467fd53d08a28984a9baa8af57e40 100644 (file)
@@ -100,7 +100,7 @@ private:
 
        void UpdateObjectsCache(void);
        void StatusTimerHandler(void);
-       void VersionChangedHandler(void);
+       void ObjectHandler(void);
 };
 
 }