mirror of https://github.com/Icinga/icinga2.git
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…
Reference in New Issue