Fixed notifications for hard recoveries.

This commit is contained in:
Gunnar Beutner 2013-02-27 06:50:39 +01:00
parent 163f0a9f5c
commit 3a74316aab
1 changed files with 2 additions and 3 deletions

View File

@ -254,11 +254,10 @@ void Service::ApplyCheckResult(const Dictionary::Ptr& cr)
long attempt = GetCurrentCheckAttempt();
if (cr->Get("state") == StateOK) {
if (old_state != StateOK && old_stateType == StateTypeHard)
if (old_state == StateOK && old_stateType == StateTypeSoft) {
hardChange = true; // hard recovery
if (old_state == StateOK)
SetStateType(StateTypeHard);
}
attempt = 1;
recovery = true;