connection: don't error when not enough data

When there is not enough data available yet, don't fail but try again
next time.
This commit is contained in:
Wim Taymans 2017-10-20 17:03:13 +02:00
parent ffd7b5a743
commit 3315de187c

View file

@ -144,7 +144,7 @@ static bool refill_buffer(struct pw_protocol_native_connection *conn, struct buf
if (len < 0) { if (len < 0) {
if (errno == EINTR) if (errno == EINTR)
continue; continue;
else if (errno != EAGAIN || errno != EWOULDBLOCK)
goto recv_error; goto recv_error;
} }
break; break;