diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/machine/machine.c | 10 | ||||
-rw-r--r-- | src/machine/machine.h | 1 | ||||
-rw-r--r-- | src/machine/machined-dbus.c | 2 |
3 files changed, 4 insertions, 9 deletions
diff --git a/src/machine/machine.c b/src/machine/machine.c index 8dec716d71..b283118796 100644 --- a/src/machine/machine.c +++ b/src/machine/machine.c @@ -406,12 +406,10 @@ static int machine_stop_scope(Machine *m) { if (!m->unit) return 0; - if (!m->registered) { - r = manager_stop_unit(m->manager, m->unit, &error, &job); - if (r < 0) { - log_error("Failed to stop machine scope: %s", bus_error_message(&error, r)); - return r; - } + r = manager_stop_unit(m->manager, m->unit, &error, &job); + if (r < 0) { + log_error("Failed to stop machine scope: %s", bus_error_message(&error, r)); + return r; } free(m->scope_job); diff --git a/src/machine/machine.h b/src/machine/machine.h index 64accda8b1..4827ba332f 100644 --- a/src/machine/machine.h +++ b/src/machine/machine.h @@ -72,7 +72,6 @@ struct Machine { bool in_gc_queue:1; bool started:1; - bool registered:1; sd_bus_message *create_message; diff --git a/src/machine/machined-dbus.c b/src/machine/machined-dbus.c index b894e0b444..233c6e8ddb 100644 --- a/src/machine/machined-dbus.c +++ b/src/machine/machined-dbus.c @@ -354,8 +354,6 @@ static int method_register_machine_internal(sd_bus *bus, sd_bus_message *message goto fail; } - m->registered = true; - r = machine_start(m, NULL, error); if (r < 0) goto fail; |