Fix that state does not get synced on acknowledgement removal

This commit is contained in:
Noah Hilverling 2018-12-03 14:23:07 +01:00 committed by Michael Friedrich
parent 992727707d
commit 3439ea755f
1 changed files with 2 additions and 0 deletions

View File

@ -53,6 +53,8 @@ void RedisWriter::ConfigStaticInitialize()
{
/* triggered in ProcessCheckResult(), requires UpdateNextCheck() to be called before */
Checkable::OnStateChange.connect(std::bind(&RedisWriter::StateChangeHandler, _1));
/* triggered when acknowledged host/service goes back to ok and when the acknowledgement gets deleted */
Checkable::OnAcknowledgementCleared.connect(std::bind(&RedisWriter::StateChangeHandler, _1));
/* triggered on create, update and delete objects */
ConfigObject::OnActiveChanged.connect(std::bind(&RedisWriter::VersionChangedHandler, _1));