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=76e665855edef5b7103cb09d114377d477bfae02;hpb=e21fea24ae2a7a04f6d5c9d2bbbaf5833d248952 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();