summaryrefslogtreecommitdiffstats
path: root/dbus
diff options
context:
space:
mode:
Diffstat (limited to 'dbus')
-rw-r--r--dbus/object_proxy.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/dbus/object_proxy.cc b/dbus/object_proxy.cc
index 95aab89..ea76fd7 100644
--- a/dbus/object_proxy.cc
+++ b/dbus/object_proxy.cc
@@ -612,8 +612,12 @@ bool ObjectProxy::AddMatchRuleWithoutCallback(
void ObjectProxy::UpdateNameOwnerAndBlock() {
bus_->AssertOnDBusThread();
+ // Errors should be suppressed here, as the service may not be yet running
+ // when connecting to signals of the service, which is just fine.
+ // The ObjectProxy will be notified when the service is launched via
+ // NameOwnerChanged signal. See also comments in ConnectToSignalInternal().
service_name_owner_ =
- bus_->GetServiceOwnerAndBlock(service_name_, Bus::REPORT_ERRORS);
+ bus_->GetServiceOwnerAndBlock(service_name_, Bus::SUPPRESS_ERRORS);
}
DBusHandlerResult ObjectProxy::HandleNameOwnerChanged(