Fix that checks with command_endpoint don't return any check results

fixes #6337
This commit is contained in:
Noah Hilverling 2018-05-29 13:51:34 +02:00
parent 1956c6aa78
commit d8b400dc17
1 changed files with 4 additions and 1 deletions

View File

@ -107,7 +107,7 @@ void Checkable::ProcessCheckResult(const CheckResult::Ptr& cr, const MessageOrig
m_CheckRunning = false;
}
if (!cr || !IsActive())
if (!cr)
return;
double now = Utility::GetTime();
@ -147,6 +147,9 @@ void Checkable::ProcessCheckResult(const CheckResult::Ptr& cr, const MessageOrig
}
if (!IsActive())
return;
bool reachable = IsReachable();
bool notification_reachable = IsReachable(DependencyNotification);