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
This commit is contained in:
Wim Taymans 2022-10-12 10:17:49 +02:00
parent 384ec63ae4
commit 15e4e6bcbc

View file

@ -266,17 +266,12 @@ static int client_try_flush_messages(struct client *client)
int res = -errno; int res = -errno;
if (res == -EINTR) if (res == -EINTR)
continue; 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; return res;
} }
client->out_index += sent; client->out_index += sent;
break; break;
} }
} }
return 0; return 0;
} }
@ -296,7 +291,6 @@ int client_flush_messages(struct client *client)
if (res != -EAGAIN && res != -EWOULDBLOCK) if (res != -EAGAIN && res != -EWOULDBLOCK)
return res; return res;
} }
return 0; return 0;
} }