mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04: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) {
|
||||
len = recvmsg(conn->fd, &msg, msg.msg_flags);
|
||||
if (len < 0) {
|
||||
if (len <= 0) {
|
||||
if (errno == EINTR)
|
||||
continue;
|
||||
if (errno != EAGAIN || errno != EWOULDBLOCK)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue