summaryrefslogtreecommitdiffstats
path: root/control/functor.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'control/functor.hpp')
-rw-r--r--control/functor.hpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/control/functor.hpp b/control/functor.hpp
index b96f650..71607c5 100644
--- a/control/functor.hpp
+++ b/control/functor.hpp
@@ -106,12 +106,7 @@ struct PropertyChanged
{
try
{
- auto service = zone.getService(_path, _iface);
- auto val = util::SDBusPlus::getProperty<T>(bus,
- service,
- _path,
- _iface,
- _property);
+ auto val = zone.getPropertyByName<T>(_path, _iface, _property);
_handler(zone, std::forward<T>(val));
}
catch (const sdbusplus::exception::SdBusError&)
OpenPOWER on IntegriCloud