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 dc8bf83..9b36b22 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;