diff options
-rw-r--r-- | src/login/logind-seat.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/login/logind-seat.c b/src/login/logind-seat.c index 937315ebf1..c2cf6e5e13 100644 --- a/src/login/logind-seat.c +++ b/src/login/logind-seat.c @@ -263,7 +263,8 @@ int seat_set_active(Seat *s, Session *session) { if (old_active) { session_save(old_active); - user_save(old_active->user); + if (!session || session->user != old_active->user) + user_save(old_active->user); } return 0; |