Fix that recovery notifications are sent in SOFT NOT-OK states

fixes #12517
This commit is contained in:
Michael Friedrich 2016-08-23 14:35:59 +02:00
parent aba62ec0b3
commit cd1b2cdddd
1 changed files with 1 additions and 1 deletions

View File

@ -183,7 +183,7 @@ void Checkable::ProcessCheckResult(const CheckResult::Ptr& cr, const MessageOrig
if (IsStateOK(cr->GetState())) {
SetStateType(StateTypeHard); // NOT-OK -> HARD OK
if (!IsStateOK(old_state))
if (old_stateType == StateTypeHard && !IsStateOK(old_state))
recovery = true;
ResetNotificationNumbers();