chiark / gitweb /
job: make sure restart jobs are readded to the run queue after conversion to start...
[elogind.git] / src / job.c
index 2b422b48773918235fee6e9f0a138099c9bc338b..d08bfe9a77d030805656b315bf7c082a1c3ab377 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;
         }