mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
server: don't instantiate a client without a monitor
This commit is contained in:
parent
2fe72effa9
commit
8de378963b
1 changed files with 6 additions and 0 deletions
6
server.c
6
server.c
|
|
@ -211,6 +211,12 @@ fdm_client(struct fdm *fdm, int fd, int events, void *data)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (tll_length(server->wayl->monitors) == 0) {
|
||||||
|
LOG_ERR("no monitors available for new terminal");
|
||||||
|
client_send_exit_code(client, -26);
|
||||||
|
goto shutdown;
|
||||||
|
}
|
||||||
|
|
||||||
/* All initialization data received - time to instantiate a terminal! */
|
/* All initialization data received - time to instantiate a terminal! */
|
||||||
|
|
||||||
xassert(client->instance == NULL);
|
xassert(client->instance == NULL);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue