logind: don't claim we'd preallocate VTs when we shortcut it

This commit is contained in:
Lennart Poettering
2019-07-23 16:08:06 +02:00
parent 9fb2c8b8c1
commit 61c6e8e49c
+2 -2
View File
@@ -191,14 +191,14 @@ int seat_preallocate_vts(Seat *s) {
assert(s);
assert(s->manager);
log_debug("Preallocating VTs...");
if (s->manager->n_autovts <= 0)
return 0;
if (!seat_has_vts(s))
return 0;
log_debug("Preallocating VTs...");
for (i = 1; i <= s->manager->n_autovts; i++) {
int q;