chiark / gitweb /
manager: when isolating undo all pending jobs, too
[elogind.git] / src / manager.c
index afd29cf7c3c69970b7b5f3c0b29419b2016d81b6..c7de1ea95c9f0ff45f79d216cd8b4349515339a4 100644 (file)
@@ -1528,7 +1528,7 @@ static int transaction_add_isolate_jobs(Manager *m) {
                         continue;
 
                 /* No need to stop inactive jobs */
-                if (UNIT_IS_INACTIVE_OR_FAILED(unit_active_state(u)))
+                if (UNIT_IS_INACTIVE_OR_FAILED(unit_active_state(u)) && !u->meta.job)
                         continue;
 
                 /* Is there already something listed for this? */