chiark / gitweb /
core: unit_inactive_or_pending() should actually do as it claims
authorLennart Poettering <lennart@poettering.net>
Mon, 6 May 2013 20:28:39 +0000 (22:28 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 6 May 2013 20:28:56 +0000 (22:28 +0200)
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;