Fix WiFi Client not properly reporting connected state

This commit is contained in:
me-no-dev 2018-07-10 15:01:40 +02:00
parent 79010b6498
commit 3e160587f3

View File

@ -451,8 +451,9 @@ uint8_t WiFiClient::connected()
_connected = true; _connected = true;
break; break;
} }
} } else if(res == 0){
else { _connected = false;
} else {
_connected = true; _connected = true;
} }
} }