diff options
Diffstat (limited to 'src/dbus-unit.c')
-rw-r--r-- | src/dbus-unit.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/dbus-unit.c b/src/dbus-unit.c index d25f325013..c9ccac1472 100644 --- a/src/dbus-unit.c +++ b/src/dbus-unit.c @@ -434,6 +434,9 @@ void bus_unit_send_change_signal(Unit *u) { u->meta.in_dbus_queue = false; } + if (!u->meta.id) + return; + if (!bus_has_subscriber(u->meta.manager)) { u->meta.sent_dbus_new_signal = true; return; @@ -491,6 +494,9 @@ void bus_unit_send_removed_signal(Unit *u) { if (!u->meta.sent_dbus_new_signal) bus_unit_send_change_signal(u); + if (!u->meta.id) + return; + if (!(p = unit_dbus_path(u))) goto oom; |