From: Alexander A. Klimov Date: Thu, 6 Dec 2018 11:50:48 +0000 (+0100) Subject: Downtime#HasValidConfigOwner(): wait for ScheduledDowntimes X-Git-Tag: v2.11.0-rc1~268^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=39e0d787e82c187de64b29e4979f4caac0907441;p=icinga2 Downtime#HasValidConfigOwner(): wait for ScheduledDowntimes refs #6542 --- diff --git a/lib/icinga/downtime.cpp b/lib/icinga/downtime.cpp index 336329bc2..4180747ac 100644 --- a/lib/icinga/downtime.cpp +++ b/lib/icinga/downtime.cpp @@ -210,6 +210,10 @@ bool Downtime::IsExpired() const bool Downtime::HasValidConfigOwner() const { + if (!ScheduledDowntime::AllConfigIsLoaded()) { + return true; + } + String configOwner = GetConfigOwner(); return configOwner.IsEmpty() || GetObject(configOwner); }