mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
connection: return false on read error
Return false to indicate that there is no more data to read or else we add the -1 to buffer_size and things go wrong..
This commit is contained in:
parent
df57656615
commit
fdfce79edb
1 changed files with 1 additions and 0 deletions
|
|
@ -150,6 +150,7 @@ static bool refill_buffer(struct pw_protocol_native_connection *conn, struct buf
|
|||
continue;
|
||||
if (errno != EAGAIN || errno != EWOULDBLOCK)
|
||||
goto recv_error;
|
||||
return false;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue