core: simplify - don't add jobs to dbus queue if we immediately remove them (#7251)
authorAlan Jenkins <alan.christopher.jenkins@gmail.com>
Tue, 7 Nov 2017 16:14:15 +0000 (16:14 +0000)
committerLennart Poettering <lennart@poettering.net>
Tue, 7 Nov 2017 16:14:15 +0000 (19:14 +0300)
commitfec7615c079a5221ac4f9c9415bfccf8bde6edcf
treeda27532c749e4fdbedf88e4a49214296a64c4886
parent30046d9c89910c76b109bf27ce412c84e006dde1
core: simplify - don't add jobs to dbus queue if we immediately remove them (#7251)

job_finish_and_invalidate() calls job_free() to destroy jobs (and remove
them from the dbus queue).  So we don't need to add them to the dbus queue
first.

We only want to add jobs to the dbus queue if they're a restart job, which
we're transmogrifying into a start job and putting back into the system.
src/core/job.c