From: Gunnar Beutner Date: Tue, 22 Sep 2015 10:01:34 +0000 (+0200) Subject: Add missing handler for OnActiveChanged X-Git-Tag: v2.4.0~301 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3bca951b81f8d84f1c47ecc2ab8f9b7fb3da284f;p=icinga2 Add missing handler for OnActiveChanged refs #9098 --- diff --git a/lib/compat/statusdatawriter.cpp b/lib/compat/statusdatawriter.cpp index 096726101..893f517ec 100644 --- a/lib/compat/statusdatawriter.cpp +++ b/lib/compat/statusdatawriter.cpp @@ -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; } diff --git a/lib/compat/statusdatawriter.hpp b/lib/compat/statusdatawriter.hpp index ab1dab0c8..c6ee85a9c 100644 --- a/lib/compat/statusdatawriter.hpp +++ b/lib/compat/statusdatawriter.hpp @@ -100,7 +100,7 @@ private: void UpdateObjectsCache(void); void StatusTimerHandler(void); - void VersionChangedHandler(void); + void ObjectHandler(void); }; }