Skip to content

Commit 09a2fec

Browse files
committed
revert commit 40cb34a that broke the webserver.
1 parent 10bf38f commit 09a2fec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/WiFi/src/WiFiClient.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ uint8_t WiFiClient::connected()
313313
if (_connected) {
314314
uint8_t dummy;
315315
int res = recv(fd(), &dummy, 0, MSG_DONTWAIT);
316-
if (res < 0) {
316+
if (res <= 0) {
317317
switch (errno) {
318318
case ENOTCONN:
319319
case EPIPE:

0 commit comments

Comments
 (0)