mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
pulser-server: use max_client settings instead of constant
This commit is contained in:
parent
3d081215f2
commit
661ff95748
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue