diff options
-rw-r--r-- | src/core/transaction.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/core/transaction.c b/src/core/transaction.c index 2a6f1de138..c00dd452eb 100644 --- a/src/core/transaction.c +++ b/src/core/transaction.c @@ -760,13 +760,9 @@ static Job* transaction_add_one_job(Transaction *tr, JobType type, Unit *unit, b } } - if (unit->job && unit->job->type == type) - j = unit->job; - else { - j = job_new(unit, type); - if (!j) - return NULL; - } + j = job_new(unit, type); + if (!j) + return NULL; j->generation = 0; j->marker = NULL; |