diff options
author | Patrick Williams <patrick@stwcx.xyz> | 2017-03-31 11:31:03 -0500 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2017-03-31 11:31:05 -0500 |
commit | 504ebc2a21d50616f57ca2f2ae4959a99fb064c9 (patch) | |
tree | c2154d2a66d80f4a5d8508cfe7614491fbf76983 /sensorhandler.cpp | |
parent | d5b2ac0e5d5decac55e7ed4be989e3d57a45c35e (diff) | |
download | phosphor-host-ipmid-504ebc2a21d50616f57ca2f2ae4959a99fb064c9.tar.gz phosphor-host-ipmid-504ebc2a21d50616f57ca2f2ae4959a99fb064c9.zip |
sensor: Reuse ipmid bus for inventory-notify
Partially fixes openbmc/openbmc#875.
Change-Id: Id1cf69f5e4e5413d95ebeccf73abde1de76de3e4
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Diffstat (limited to 'sensorhandler.cpp')
-rw-r--r-- | sensorhandler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sensorhandler.cpp b/sensorhandler.cpp index 38f84d4..95d8ad0 100644 --- a/sensorhandler.cpp +++ b/sensorhandler.cpp @@ -410,7 +410,7 @@ ipmi_ret_t setSensorReading(void *request) } objects.emplace(iter->second.sensorPath, std::move(interfaces)); - auto bus = sdbusplus::bus::new_default(); + sdbusplus::bus::bus bus{sd_bus_ref(ipmid_get_sd_bus_connection())}; using namespace std::string_literals; static const auto intf = "xyz.openbmc_project.Inventory.Manager"s; static const auto path = "/xyz/openbmc_project/inventory"s; |