mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-28 08:04:14 +02:00
Bugfixes.
This commit is contained in:
parent
d26d8e7bb7
commit
57f0dcf460
@ -192,6 +192,10 @@ bool Service::IsReachable(void) const
|
|||||||
|
|
||||||
vector<Service>::iterator it;
|
vector<Service>::iterator it;
|
||||||
for (it = parents.begin(); it != parents.end(); it++) {
|
for (it = parents.begin(); it != parents.end(); it++) {
|
||||||
|
/* ignore ourselves */
|
||||||
|
if (it->GetName() == GetName())
|
||||||
|
continue;
|
||||||
|
|
||||||
if (!it->IsReachable())
|
if (!it->IsReachable())
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user