X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fmachine%2Fmachine-dbus.c;h=ceab96e07832d375e3ae801f5dd98002a9edd8a5;hp=6e1b8f8186050311c354a4ca5304bd1340be06dd;hb=bd16acf35e13a19cd2ded0a0c2ef774a98f73808;hpb=5d48cd27270e74f878f6ed3fe119e4cf3ef7f84e diff --git a/src/machine/machine-dbus.c b/src/machine/machine-dbus.c index 6e1b8f818..ceab96e07 100644 --- a/src/machine/machine-dbus.c +++ b/src/machine/machine-dbus.c @@ -350,6 +350,10 @@ int machine_send_create_reply(Machine *m, DBusError *error) { return log_oom(); } + /* Update the machine state file before we notify the client + * about the result. */ + machine_save(m); + if (!dbus_connection_send(m->manager->bus, reply, NULL)) return log_oom();