chiark / gitweb /
job: make sure restart jobs are readded to the run queue after conversion to start...
[elogind.git] / src / job.c
index 2b422b4..d08bfe9 100644 (file)
--- a/src/job.c
+++ b/src/job.c
@@ -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;
         }