chiark / gitweb /
logind: trivial simplification
[elogind.git] / src / login / logind-session-dbus.c
index d1e652344686426010cb25362f18e3ec716420ca..a39486527ca8331a0f9e953ba458075c3778c25f 100644 (file)
@@ -768,11 +768,13 @@ int session_send_create_reply(Session *s, sd_bus_error *error) {
         if (fifo_fd < 0)
                 return fifo_fd;
 
-        /* Update the session and user state files before we notify
-         * the client about the result. */
+        /* Update the session state file before we notify the client
+         * about the result. */
         session_save(s);
-        user_save(s->user);
 
+#if 1 /// Additionally elogind saves the user state file
+        user_save(s->user);
+#endif // 1
         p = session_bus_path(s);
         if (!p)
                 return -ENOMEM;