Merge pull request #15233 from msekletar/device-dbus

device: make sure we don't generate bogus PropertiesChanged signals
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2020-03-29 20:52:31 +02:00
committed by GitHub
+2 -3
View File
@@ -83,6 +83,8 @@ static int device_set_sysfs(Device *d, const char *sysfs) {
}
d->sysfs = TAKE_PTR(copy);
unit_add_to_dbus_queue(UNIT(d));
return 0;
}
@@ -562,9 +564,6 @@ static int device_setup_unit(Manager *m, sd_device *dev, const char *path, bool
if (dev && device_is_bound_by_mounts(DEVICE(u), dev))
device_upgrade_mount_deps(u);
/* Note that this won't dispatch the load queue, the caller has to do that if needed and appropriate */
unit_add_to_dbus_queue(u);
return 0;
fail: