From: Alexander A. Klimov Date: Wed, 29 May 2019 08:33:29 +0000 (+0200) Subject: Actually wait for running checks X-Git-Tag: v2.11.0-rc1~68^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=705ab87b603dceb1f48c9826f01c1de1446c7023;p=icinga2 Actually wait for running checks refs #6841 --- diff --git a/lib/checker/checkercomponent.cpp b/lib/checker/checkercomponent.cpp index 8f6ba5249..20300b3ab 100644 --- a/lib/checker/checkercomponent.cpp +++ b/lib/checker/checkercomponent.cpp @@ -76,9 +76,9 @@ void CheckerComponent::Stop(bool runtimeRemoved) double wait = 0.0; - while (GetPendingCheckables() > 0) { + while (Checkable::GetPendingChecks() > 0) { Log(LogDebug, "CheckerComponent") - << "Waiting for running checks (" << GetPendingCheckables() + << "Waiting for running checks (" << Checkable::GetPendingChecks() << ") to finish. Waited for " << wait << " seconds now."; Utility::Sleep(0.1);