summaryrefslogtreecommitdiff
path: root/src/logind-seat.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/logind-seat.c')
-rw-r--r--src/logind-seat.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/logind-seat.c b/src/logind-seat.c
index 5663aeea4b..1bc0570517 100644
--- a/src/logind-seat.c
+++ b/src/logind-seat.c
@@ -449,6 +449,9 @@ int seat_get_idle_hint(Seat *s, dual_timestamp *t) {
int seat_check_gc(Seat *s) {
assert(s);
+ if (!s->started)
+ return 0;
+
if (seat_is_vtconsole(s))
return 1;