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:
parent
b70cc80ffb
commit
9f65637308
|
@ -91,7 +91,8 @@ static void bus_wait_for_units_clear(BusWaitForUnits *d) {
|
|||
while ((item = hashmap_first(d->items))) {
|
||||
d->current = item;
|
||||
|
||||
item->unit_callback(d, item->bus_path, false, item->userdata);
|
||||
if (item->unit_callback)
|
||||
item->unit_callback(d, item->bus_path, false, item->userdata);
|
||||
wait_for_item_free(item);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue