From: Gunnar Beutner Date: Tue, 3 Jul 2012 13:14:49 +0000 (+0200) Subject: Bugfixes. X-Git-Tag: v0.0.1~314 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=57f0dcf460923e76939b0395690c01c6b7dc5cf8;p=icinga2 Bugfixes. --- diff --git a/cib/service.cpp b/cib/service.cpp index f15e30de1..aa5d959fc 100644 --- a/cib/service.cpp +++ b/cib/service.cpp @@ -192,6 +192,10 @@ bool Service::IsReachable(void) const vector::iterator it; for (it = parents.begin(); it != parents.end(); it++) { + /* ignore ourselves */ + if (it->GetName() == GetName()) + continue; + if (!it->IsReachable()) return false; }