mirror of https://github.com/Icinga/icinga2.git
Add missing lock.
This commit is contained in:
parent
709e8c925e
commit
0d96923b45
|
@ -369,6 +369,8 @@ std::set<Service::Ptr> Service::GetParentServices(void) const
|
|||
Array::Ptr dependencies = GetServiceDependencies();
|
||||
|
||||
if (host && dependencies) {
|
||||
ObjectLock olock(dependencies);
|
||||
|
||||
BOOST_FOREACH(const Value& dependency, dependencies) {
|
||||
Service::Ptr service = host->GetServiceByShortName(dependency);
|
||||
|
||||
|
|
Loading…
Reference in New Issue