X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Flibelogind%2Fsd-bus%2Fbus-slot.c;fp=src%2Flibelogind%2Fsd-bus%2Fbus-slot.c;h=c45247756691fcee116d0d50d35d661502217768;hb=27b793f238ce93e7b8df3a13c32af6f861f566d2;hp=8060e9882cccd9429945eb1f62ce606abe7d2cb6;hpb=6eff6dc0d80fc585925f1d7fd02898b1af46b6fe;p=elogind.git diff --git a/src/libelogind/sd-bus/bus-slot.c b/src/libelogind/sd-bus/bus-slot.c index 8060e9882..c45247756 100644 --- a/src/libelogind/sd-bus/bus-slot.c +++ b/src/libelogind/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;