chiark / gitweb /
job: make sure restart jobs are readded to the run queue after conversion to start...
authorLennart Poettering <lennart@poettering.net>
Wed, 21 Jul 2010 03:16:31 +0000 (05:16 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 21 Jul 2010 03:16:31 +0000 (05:16 +0200)
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;
         }