parent
7a332864ab
commit
5cfff190e9
@ -439,9 +439,8 @@ uint8_t WiFiClient::connected()
|
|||||||
if (_connected) {
|
if (_connected) {
|
||||||
uint8_t dummy;
|
uint8_t dummy;
|
||||||
int res = recv(fd(), &dummy, 0, MSG_DONTWAIT);
|
int res = recv(fd(), &dummy, 0, MSG_DONTWAIT);
|
||||||
if(res < 0) {
|
// avoid unused var warning by gcc
|
||||||
log_e("RES: %d", res);
|
(void)res;
|
||||||
}
|
|
||||||
switch (errno) {
|
switch (errno) {
|
||||||
case EWOULDBLOCK:
|
case EWOULDBLOCK:
|
||||||
case ENOENT: //caused by vfs
|
case ENOENT: //caused by vfs
|
||||||
|
Loading…
Reference in New Issue
Block a user