Skip to content

Commit 0c4fd45

Browse files
authored
Merge branch 'master' into asyncudp_license
2 parents 369427f + 1712fb5 commit 0c4fd45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/Network/src/NetworkClient.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ uint8_t NetworkClient::connected() {
549549
}
550550
if (_connected) {
551551
uint8_t dummy;
552-
int res = recv(fd(), &dummy, 0, MSG_DONTWAIT);
552+
int res = recv(fd(), &dummy, 1, MSG_DONTWAIT | MSG_PEEK);
553553
// avoid unused var warning by gcc
554554
(void)res;
555555
// recv only sets errno if res is <= 0

0 commit comments

Comments
 (0)