summaryrefslogtreecommitdiff
path: root/src/libsystemd/sd-bus/bus-slot.c
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@googlemail.com>2015-06-17 12:20:03 +0200
committerDavid Herrmann <dh.herrmann@googlemail.com>2015-06-17 12:20:03 +0200
commit9d8a5fd3e62ee89073364a3f7fa95c50dc85d890 (patch)
tree5c2c60e3e0207b0d033bdf4f67873300006a1157 /src/libsystemd/sd-bus/bus-slot.c
parent6e2ebc85ad5babb49e299d191f225742a7a0f63c (diff)
parentcc65fe5e14770d0116e0f475c5dc2ef57113bc98 (diff)
Merge pull request #244 from poettering/sdbus-suppress-local
sd-bus: suppress installing local bus matches server side
Diffstat (limited to 'src/libsystemd/sd-bus/bus-slot.c')
-rw-r--r--src/libsystemd/sd-bus/bus-slot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd/sd-bus/bus-slot.c b/src/libsystemd/sd-bus/bus-slot.c
index 8060e9882c..c452477566 100644
--- a/src/libsystemd/sd-bus/bus-slot.c
+++ b/src/libsystemd/sd-bus/bus-slot.c
@@ -89,7 +89,7 @@ void bus_slot_disconnect(sd_bus_slot *slot) {
case BUS_MATCH_CALLBACK:
- if (slot->bus->bus_client)
+ if (slot->match_added)
bus_remove_match_internal(slot->bus, slot->match_callback.match_string, slot->match_callback.cookie);
slot->bus->match_callbacks_modified = true;