diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2015-11-06 15:52:51 +0100 |
---|---|---|
committer | Simon McVittie <smcv@debian.org> | 2015-11-17 20:53:08 +0000 |
commit | f3be583b40dadfd78ddefbc9fb3fa182bafde949 (patch) | |
tree | c768e5c68ef64a36c23c3678839e5bbac51b63d9 /bus/driver.c | |
parent | a12c9cebb7f818d228c70dafc8292fbbca47534d (diff) | |
download | dbus-f3be583b40dadfd78ddefbc9fb3fa182bafde949.tar.gz |
monitor: use the addressed_recipient to select matches
This means we respect the destination keyword in arguments to
BecomeMonitor.
In bus_dispatch(), this means that we need to defer capturing until
we have decided whether there is an addressed recipient; so instead
of capturing once, we capture at each leaf of the decision tree.
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=92074
Reviewed-by: Philip Withnall <philip.withnall@collabora.co.uk>
Reviewed-by: Lars Uebernickel <lars@uebernic.de>
Diffstat (limited to 'bus/driver.c')
-rw-r--r-- | bus/driver.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bus/driver.c b/bus/driver.c index 852ac536..eba7b980 100644 --- a/bus/driver.c +++ b/bus/driver.c @@ -243,7 +243,7 @@ bus_driver_send_service_owner_changed (const char *service_name, _dbus_assert (dbus_message_has_signature (message, "sss")); - if (!bus_transaction_capture (transaction, NULL, message)) + if (!bus_transaction_capture (transaction, NULL, NULL, message)) goto oom; retval = bus_dispatch_matches (transaction, NULL, NULL, message, error); |