pulser-server: use max_client settings instead of constant

This commit is contained in:
Wim Taymans 2022-01-13 19:53:06 +01:00
parent 3d081215f2
commit 661ff95748

View file

@ -379,7 +379,7 @@ on_connect(void *data, int fd, uint32_t mask)
goto error; goto error;
} }
if (server->n_clients >= MAX_CLIENTS) { if (server->n_clients >= server->max_clients) {
close(client_fd); close(client_fd);
errno = ECONNREFUSED; errno = ECONNREFUSED;
goto error; goto error;