]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core: when we uninstall a job, add unit to dbus queue
authorAlberts Muktupāvels <alberts.muktupavels@gmail.com>
Tue, 12 Feb 2019 01:00:21 +0000 (03:00 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 12 Feb 2019 15:55:45 +0000 (16:55 +0100)
Commit e6d05912cb1785d8c75eb40545beb8a7c6753cb9 added unit to dbus
queue on job install. Do same on job uninstall to make sure we get
PropertiesChanged signal.

src/core/job.c

index cc55bd01b8ee2879395db80e638318ccf62596d9..59bb9d2162c610a037d3f94f4ff7149c5d58ab6d 100644 (file)
@@ -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;
 }