module-protocol-simple: do not cleanup client when send returns EAGAIN or EWOULDBLOCK

This commit is contained in:
Stefan Ursella 2024-02-05 14:04:39 +01:00 committed by stefanu21
parent db3d7b88dd
commit 8f2a239504

View file

@ -305,10 +305,11 @@ static void capture_process(void *data)
if (res < 0) {
if (errno == EINTR)
continue;
if (errno != EAGAIN && errno != EWOULDBLOCK)
if (errno != EAGAIN && errno != EWOULDBLOCK) {
pw_log_warn("%p: client:%p [%s] send error %d: %m", impl,
client, client->name, res);
client_cleanup(client);
}
break;
}
offset += res;