Don't generate 'UNKNOWN' results when the endpoint's log is still being resynced

fixes #12844
This commit is contained in:
Gunnar Beutner 2016-10-24 08:38:58 +02:00
parent 08460e7bed
commit 5fdc874377
1 changed files with 1 additions and 1 deletions

View File

@ -476,7 +476,7 @@ void Checkable::ExecuteCheck(void)
a check result from the remote instance. The check will be re-scheduled
using the proper check interval once we've received a check result. */
SetNextCheck(Utility::GetTime() + GetCheckCommand()->GetTimeout() + 30);
} else if (Application::GetInstance()->GetStartTime() < Utility::GetTime() - 300) {
} else if (!endpoint->GetSyncing() && Application::GetInstance()->GetStartTime() < Utility::GetTime() - 300) {
/* fail to perform check on unconnected endpoint */
cr->SetState(ServiceUnknown);