summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/job.c2
-rw-r--r--src/manager.c1
2 files changed, 1 insertions, 2 deletions
diff --git a/src/job.c b/src/job.c
index 53c47d4a72..7470204710 100644
--- a/src/job.c
+++ b/src/job.c
@@ -461,8 +461,6 @@ int job_run_and_invalidate(Job *j) {
j->state = JOB_WAITING;
else if (r < 0)
r = job_finish_and_invalidate(j, JOB_FAILED);
- else
- job_start_timer(j);
}
return r;
diff --git a/src/manager.c b/src/manager.c
index 6759bbac97..f266aaa01c 100644
--- a/src/manager.c
+++ b/src/manager.c
@@ -1216,6 +1216,7 @@ static int transaction_apply(Manager *m) {
job_add_to_run_queue(j);
job_add_to_dbus_queue(j);
+ job_start_timer(j);
log_debug("Installed new job %s/%s as %u", j->unit->meta.id, job_type_to_string(j->type), (unsigned) j->id);
}