shared: Don't try calling NULL callback in bus_wait_for_units_clear

BugLink: https://bugs.launchpad.net/bugs/1870930
This commit is contained in:
Balint Reczey 2020-04-22 09:51:53 +02:00 committed by Lennart Poettering
parent b70cc80ffb
commit 9f65637308

View file

@ -91,6 +91,7 @@ static void bus_wait_for_units_clear(BusWaitForUnits *d) {
while ((item = hashmap_first(d->items))) {
d->current = item;
if (item->unit_callback)
item->unit_callback(d, item->bus_path, false, item->userdata);
wait_for_item_free(item);
}