protocol-native: change some warnings to infos

Errors caused by EPIPE/Connection reset by peer should not cause an
error in the pipewire log, but rather an info.
This commit is contained in:
Torkel Niklasson 2021-12-14 13:31:28 +01:00 committed by Wim Taymans
parent 1f4254b344
commit 10755ff115
2 changed files with 10 additions and 2 deletions

View file

@ -291,7 +291,7 @@ client_busy_changed(void *data, bool busy)
static void handle_client_error(struct pw_impl_client *client, int res)
{
if (res == -EPIPE)
if (res == -EPIPE || res == -ECONNRESET)
pw_log_info("%p: client %p disconnected", client->protocol, client);
else
pw_log_error("%p: client %p error %d (%s)", client->protocol,