mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
pulse-server: don't send error on connection error
This commit is contained in:
parent
c92ce17a9f
commit
348110e58c
1 changed files with 3 additions and 2 deletions
|
|
@ -2635,10 +2635,11 @@ on_client_data(void *data, int fd, uint32_t mask)
|
||||||
error:
|
error:
|
||||||
if (res == -EPIPE)
|
if (res == -EPIPE)
|
||||||
pw_log_info(NAME" %p: client %p disconnected", impl, client);
|
pw_log_info(NAME" %p: client %p disconnected", impl, client);
|
||||||
else
|
else {
|
||||||
pw_log_error(NAME" %p: client %p error %d (%s)", impl,
|
pw_log_error(NAME" %p: client %p error %d (%s)", impl,
|
||||||
client, res, spa_strerror(res));
|
client, res, spa_strerror(res));
|
||||||
reply_error(client, -1, ERR_PROTOCOL);
|
reply_error(client, -1, ERR_PROTOCOL);
|
||||||
|
}
|
||||||
client_free(client);
|
client_free(client);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue