chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dbus: send signals about jobs to the clients having created them unconditionally...
[elogind.git]
/
src
/
job.c
diff --git
a/src/job.c
b/src/job.c
index 31e9cfe8d6f937ddf7973548c599f2c0d64283cb..a090ec9b113cc2e5c3c111c55d6b97628e98d0db 100644
(file)
--- 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);
if (j->in_dbus_queue)
LIST_REMOVE(Job, dbus_queue, j->manager->dbus_job_queue, j);
+ free(j->bus_client);
free(j);
}
free(j);
}
@@
-544,10
+545,9
@@
void job_add_to_dbus_queue(Job *j) {
if (j->in_dbus_queue)
return;
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;
LIST_PREPEND(Job, dbus_queue, j->manager->dbus_job_queue, j);
j->in_dbus_queue = true;