Make Message's setDestination() thread safe

This commit is contained in:
Stanislav Angelovic
2021-04-29 15:30:56 +00:00
parent 5ee4c61a1b
commit b0a72cbe92
5 changed files with 14 additions and 1 deletions
+1 -1
View File
@@ -820,7 +820,7 @@ void Signal::send() const
void Signal::setDestination(const std::string& destination)
{
auto r = sd_bus_message_set_destination((sd_bus_message*)msg_, destination.c_str());
auto r = sdbus_->sd_bus_message_set_destination((sd_bus_message*)msg_, destination.c_str());
SDBUS_THROW_ERROR_IF(r < 0, "Failed to set signal destination", -r);
}