summaryrefslogtreecommitdiff
path: root/src/job.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-07-05 00:58:07 +0200
committerLennart Poettering <lennart@poettering.net>2010-07-05 00:58:07 +0200
commita567261a29b4e19c0c195240411b7562063d99f8 (patch)
treeaf4c229fcb9b96520dad8941188c225c031bfb73 /src/job.c
parent552e4331bf165290eb02596355d9570c1ef9af47 (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.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/job.c b/src/job.c
index 31e9cfe8d6..a090ec9b11 100644
--- a/src/job.c
+++ b/src/job.c
@@ -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;