chiark / gitweb /
sd-bus: suppress installing local bus matches server side
[elogind.git] / src / libelogind / sd-bus / bus-slot.c
index 8060e9882cccd9429945eb1f62ce606abe7d2cb6..c45247756691fcee116d0d50d35d661502217768 100644 (file)
@@ -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;