From 57f0dcf460923e76939b0395690c01c6b7dc5cf8 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Tue, 3 Jul 2012 15:14:49 +0200 Subject: [PATCH] Bugfixes. --- cib/service.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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; }