Fix checkresults from the future breaking checks

This commit is contained in:
Jean Flach 2019-01-11 16:16:45 +01:00 committed by Michael Friedrich
parent d2755351d3
commit c97f3c80f5
1 changed files with 2 additions and 2 deletions

View File

@ -170,8 +170,8 @@ void Checkable::ProcessCheckResult(const CheckResult::Ptr& cr, const MessageOrig
long old_attempt = GetCheckAttempt();
bool recovery = false;
/* Ignore check results older than the current one. */
if (old_cr && cr->GetExecutionStart() < old_cr->GetExecutionStart())
/* Ignore check results older than the current one, except if the previous check result is from the future. */
if (old_cr && cr->GetExecutionStart() < old_cr->GetExecutionStart() && old_cr->GetExecutionStart() < now)
return;
/* The ExecuteCheck function already sets the old state, but we need to do it again