From 97777f173adc7f762bfb8a894ff17dd677b45bbd Mon Sep 17 00:00:00 2001 From: Stefan Ursella Date: Mon, 5 Feb 2024 14:04:39 +0100 Subject: [PATCH] module-protocol-simple: do not cleanup client when send returns EAGAIN or EWOULDBLOCK --- src/modules/module-protocol-simple.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/modules/module-protocol-simple.c b/src/modules/module-protocol-simple.c index e6f54a90c..389c7ab4c 100644 --- a/src/modules/module-protocol-simple.c +++ b/src/modules/module-protocol-simple.c @@ -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); + client_cleanup(client); + } break; } offset += res;