summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/login/logind-session-dbus.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/login/logind-session-dbus.c b/src/login/logind-session-dbus.c
index 167d2ab8b4..fa9c0039f4 100644
--- a/src/login/logind-session-dbus.c
+++ b/src/login/logind-session-dbus.c
@@ -644,14 +644,14 @@ int session_send_create_reply(Session *s, sd_bus_error *error) {
if (error)
return sd_bus_reply_method_error(s->manager->bus, c, error);
- /* Update the session state file before we notify the client
- * about the result. */
- session_save(s);
-
fifo_fd = session_create_fifo(s);
if (fifo_fd < 0)
return fifo_fd;
+ /* Update the session state file before we notify the client
+ * about the result. */
+ session_save(s);
+
p = session_bus_path(s);
if (!p)
return -ENOMEM;