summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlberts Muktupāvels <alberts.muktupavels@gmail.com>2019-02-12 02:00:21 +0100
committerLennart Poettering <lennart@poettering.net>2019-02-12 16:55:45 +0100
commit52c6c9eaecb493cc4d8a146bf67d93c8aea862c2 (patch)
treef22862d0d52d67e3b990604bdc83857c023e90ef
parentUpdate mount.c (diff)
downloadsystemd-52c6c9eaecb493cc4d8a146bf67d93c8aea862c2.tar.xz
systemd-52c6c9eaecb493cc4d8a146bf67d93c8aea862c2.zip
core: when we uninstall a job, add unit to dbus queue
Commit e6d05912cb1785d8c75eb40545beb8a7c6753cb9 added unit to dbus queue on job install. Do same on job uninstall to make sure we get PropertiesChanged signal.
-rw-r--r--src/core/job.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/job.c b/src/core/job.c
index cc55bd01b8..59bb9d2162 100644
--- a/src/core/job.c
+++ b/src/core/job.c
@@ -151,6 +151,8 @@ void job_uninstall(Job *j) {
unit_add_to_gc_queue(j->unit);
+ unit_add_to_dbus_queue(j->unit); /* The Job property of the unit has changed now */
+
hashmap_remove_value(j->manager->jobs, UINT32_TO_PTR(j->id), j);
j->installed = false;
}