Merge pull request #7208 from Icinga/bugfix/waiting-for-running-checks-6841

Actually wait for running checks
This commit is contained in:
Michael Friedrich 2019-06-06 11:16:34 +02:00 committed by GitHub
commit f9a02fb813
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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);