pulse-server: handle out-of-files better

When we don't have enough files to accept the connection, clear the
_IN flag so that we don't try to accept if over and over again.
When a client disconnects, set the flag again so that we try to
accecpt new connections again.

See #1305
This commit is contained in:
Wim Taymans 2021-06-18 15:22:10 +02:00
parent 22b5b6b120
commit def0caf281
2 changed files with 22 additions and 4 deletions

View file

@ -198,6 +198,7 @@ struct server {
struct spa_source *source;
struct spa_list clients;
uint32_t n_clients;
uint32_t wait_clients;
unsigned int activated:1;
};