diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/event.hpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/event.hpp b/src/event.hpp index 22834bf..ca256a7 100644 --- a/src/event.hpp +++ b/src/event.hpp @@ -32,10 +32,18 @@ class EventBase : public IndexedCallback /** @brief Callback interface implementation. */ void operator()(Context ctx) override { + if (ctx == Context::START) + { + // No action should be taken + // as this call back is being called from + // daemon Startup. + return; + } + for (const auto& n : index) { const auto& path = std::get<pathIndex>(n.first); - const auto& propertyMeta = std::get<metaIndex>(n.first); + const auto& propertyMeta = std::get<propertyIndex>(n.first); const auto& value = std::get<valueIndex>(n.second); if (!value.get().empty()) |