chiark / gitweb /
logind: don't confuse 'shared' with a session of its own
[elogind.git] / src / service.c
index 5c7e62f3b0f3f24cf7430ba5c769891468d23e12..b684a37cd753f1e748f25009faddad13c9122575 100644 (file)
@@ -1496,7 +1496,7 @@ static void service_set_state(Service *s, ServiceState state) {
 
         /* For the inactive states unit_notify() will trim the cgroup,
          * but for exit we have to do that ourselves... */
-        if (state == SERVICE_EXITED && s->meta.manager->n_deserializing <= 0)
+        if (state == SERVICE_EXITED && s->meta.manager->n_reloading <= 0)
                 cgroup_bonding_trim_list(s->meta.cgroup_bondings, true);
 
         if (old_state != state)