Make Message's setDestination() thread safe
This commit is contained in:
1 parent
5ee4c61a1b
commit
b0a72cbe92
5 files changed
+14
-1
No files matched your search
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user