summaryrefslogtreecommitdiff
path: root/src/logind-user.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/logind-user.c')
-rw-r--r--src/logind-user.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/logind-user.c b/src/logind-user.c
index 177e88200a..4335bf6462 100644
--- a/src/logind-user.c
+++ b/src/logind-user.c
@@ -459,6 +459,9 @@ int user_check_gc(User *u) {
assert(u);
+ if (!u->started)
+ return 0;
+
if (u->sessions)
return 1;