diff options
Diffstat (limited to 'control')
-rw-r--r-- | control/zone.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/control/zone.cpp b/control/zone.cpp index 4e8a749..4531151 100644 --- a/control/zone.cpp +++ b/control/zone.cpp @@ -555,8 +555,13 @@ const std::string& Zone::addServices(const std::string& path, // Service found in cache for (auto& iIter : sIter.second) { - // Add interface to cache - servIter->second.emplace_back(iIter); + if (std::find(servIter->second.begin(), + servIter->second.end(), + iIter) == servIter->second.end()) + { + // Add interface to cache + servIter->second.emplace_back(iIter); + } } } else |