From 15e4e6bcbc3faff170497d28d00aa64b3f5d2191 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 12 Oct 2022 10:17:49 +0200 Subject: [PATCH] pulse-server: remove warning When we get EPIPE from a client send, pass the error code without logging a warning. The caller will log an appropriate message instead. Fixes #2754 --- src/modules/module-protocol-pulse/client.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/modules/module-protocol-pulse/client.c b/src/modules/module-protocol-pulse/client.c index fe7d78858..1e6d202b7 100644 --- a/src/modules/module-protocol-pulse/client.c +++ b/src/modules/module-protocol-pulse/client.c @@ -266,17 +266,12 @@ static int client_try_flush_messages(struct client *client) int res = -errno; if (res == -EINTR) continue; - if (res != -EAGAIN && res != -EWOULDBLOCK) - pw_log_warn("client %p: send channel:%u %zu, error %d: %m", - client, m->channel, size, res); return res; } - client->out_index += sent; break; } } - return 0; } @@ -296,7 +291,6 @@ int client_flush_messages(struct client *client) if (res != -EAGAIN && res != -EWOULDBLOCK) return res; } - return 0; }