mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-16 08:56:45 -05:00
connection: stop refill when 0 bytes read
This commit is contained in:
parent
56158fbb62
commit
5c896fedd5
1 changed files with 1 additions and 1 deletions
|
|
@ -158,7 +158,7 @@ static int refill_buffer(struct pw_protocol_native_connection *conn, struct buff
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
len = recvmsg(conn->fd, &msg, msg.msg_flags);
|
len = recvmsg(conn->fd, &msg, msg.msg_flags);
|
||||||
if (len < 0) {
|
if (len <= 0) {
|
||||||
if (errno == EINTR)
|
if (errno == EINTR)
|
||||||
continue;
|
continue;
|
||||||
if (errno != EAGAIN || errno != EWOULDBLOCK)
|
if (errno != EAGAIN || errno != EWOULDBLOCK)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue