mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-25 06:34:42 +02:00
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;
|
double wait = 0.0;
|
||||||
|
|
||||||
while (GetPendingCheckables() > 0) {
|
while (Checkable::GetPendingChecks() > 0) {
|
||||||
Log(LogDebug, "CheckerComponent")
|
Log(LogDebug, "CheckerComponent")
|
||||||
<< "Waiting for running checks (" << GetPendingCheckables()
|
<< "Waiting for running checks (" << Checkable::GetPendingChecks()
|
||||||
<< ") to finish. Waited for " << wait << " seconds now.";
|
<< ") to finish. Waited for " << wait << " seconds now.";
|
||||||
|
|
||||||
Utility::Sleep(0.1);
|
Utility::Sleep(0.1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user