job: make sure restart jobs are readded to the run queue after conversion to start jobs

This commit is contained in:
Lennart Poettering
2010-07-21 05:16:31 +02:00
parent a7f241db3f
commit cc42e0817f
+2
View File
@@ -485,6 +485,8 @@ int job_finish_and_invalidate(Job *j, bool success) {
j->state = JOB_WAITING;
j->type = JOB_START;
job_add_to_run_queue(j);
return 0;
}