mirror of https://github.com/Icinga/icinga2.git
Merge pull request #7208 from Icinga/bugfix/waiting-for-running-checks-6841
Actually wait for running checks
This commit is contained in:
commit
f9a02fb813
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue