diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-07-05 00:58:07 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-07-05 00:58:07 +0200 |
commit | a567261a29b4e19c0c195240411b7562063d99f8 (patch) | |
tree | af4c229fcb9b96520dad8941188c225c031bfb73 /src/job.c | |
parent | 552e4331bf165290eb02596355d9570c1ef9af47 (diff) |
dbus: send signals about jobs to the clients having created them unconditionally, and thus get rid of broadcast signals in most cases
Diffstat (limited to 'src/job.c')
-rw-r--r-- | src/job.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -76,6 +76,7 @@ void job_free(Job *j) { if (j->in_dbus_queue) LIST_REMOVE(Job, dbus_queue, j->manager->dbus_job_queue, j); + free(j->bus_client); free(j); } @@ -544,10 +545,9 @@ void job_add_to_dbus_queue(Job *j) { if (j->in_dbus_queue) return; - if (set_isempty(j->manager->subscribed)) { - j->sent_dbus_new_signal = true; - return; - } + /* We don't check if anybody is subscribed here, since this + * job might just have been created and not yet assigned to a + * connection/client. */ LIST_PREPEND(Job, dbus_queue, j->manager->dbus_job_queue, j); j->in_dbus_queue = true; |