diff options
Diffstat (limited to 'src/logind-user.c')
-rw-r--r-- | src/logind-user.c | 3 |
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; |