From 94b6dfa24f84bd8854c1dc566413b0719dce9e0d Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sun, 16 May 2010 03:57:07 +0200 Subject: unit,job: when we suppress a D-Bus signal because nobody is listening, don't delay it until later --- dbus-unit.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'dbus-unit.c') diff --git a/dbus-unit.c b/dbus-unit.c index ccaaef99a2..0c311ea1a7 100644 --- a/dbus-unit.c +++ b/dbus-unit.c @@ -348,8 +348,10 @@ void bus_unit_send_change_signal(Unit *u) { LIST_REMOVE(Meta, dbus_queue, u->meta.manager->dbus_unit_queue, &u->meta); u->meta.in_dbus_queue = false; - if (set_isempty(u->meta.manager->subscribed)) + if (set_isempty(u->meta.manager->subscribed)) { + u->meta.sent_dbus_new_signal = true; return; + } if (!(p = unit_dbus_path(u))) goto oom; -- cgit v1.2.3-54-g00ecf