pulse-server: don't send error on connection error

This commit is contained in:
Wim Taymans 2020-10-14 15:45:25 +02:00
parent c92ce17a9f
commit 348110e58c

View file

@ -2635,10 +2635,11 @@ on_client_data(void *data, int fd, uint32_t mask)
error:
if (res == -EPIPE)
pw_log_info(NAME" %p: client %p disconnected", impl, client);
else
else {
pw_log_error(NAME" %p: client %p error %d (%s)", impl,
client, res, spa_strerror(res));
reply_error(client, -1, ERR_PROTOCOL);
}
client_free(client);
}