Add missing lock.

This commit is contained in:
Gunnar Beutner 2013-06-21 08:30:26 +02:00
parent 709e8c925e
commit 0d96923b45
1 changed files with 2 additions and 0 deletions

View File

@ -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);