diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-05-16 03:57:07 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-05-16 03:57:07 +0200 |
commit | 94b6dfa24f84bd8854c1dc566413b0719dce9e0d (patch) | |
tree | 58036dab36657dce62b5926a103232b8a907dbdf /dbus-job.c | |
parent | c1b94fda55e6e29e388a30f846b62650b5e60f7e (diff) |
unit,job: when we suppress a D-Bus signal because nobody is listening, don't delay it until later
Diffstat (limited to 'dbus-job.c')
-rw-r--r-- | dbus-job.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/dbus-job.c b/dbus-job.c index f14f92f9aa..3a6e7159e9 100644 --- a/dbus-job.c +++ b/dbus-job.c @@ -152,8 +152,10 @@ void bus_job_send_change_signal(Job *j) { LIST_REMOVE(Job, dbus_queue, j->manager->dbus_job_queue, j); j->in_dbus_queue = false; - if (set_isempty(j->manager->subscribed)) + if (set_isempty(j->manager->subscribed)) { + j->sent_dbus_new_signal = true; return; + } if (!(p = job_dbus_path(j))) goto oom; |