chiark / gitweb /
core: unit_inactive_or_pending() should actually do as it claims
[elogind.git] / src / core / unit.c
index dc8bf833830f3c57bc3e41670065064140a37df2..9b36b225fa0151cf4c4256dc4ed12265825eea96 100644 (file)
@@ -2676,6 +2676,9 @@ bool unit_inactive_or_pending(Unit *u) {
 
         /* Returns true if the unit is inactive or going down */
 
+        if (UNIT_IS_INACTIVE_OR_DEACTIVATING(unit_active_state(u)))
+                return true;
+
         if (unit_stop_pending(u))
                 return true;