#2147 available() shouldn't return 0 after disconnect if there is still data in the buffer. Otherwise, how would we know it was there? (#2148)

This commit is contained in:
rdowning-triax 2018-12-04 12:23:34 -05:00 committed by Me No Dev
parent af7e489f01
commit fe1fdd2790

View File

@ -398,9 +398,6 @@ int WiFiClient::peek()
int WiFiClient::available() int WiFiClient::available()
{ {
if(!_connected) {
return 0;
}
int res = _rxBuffer->available(); int res = _rxBuffer->available();
if(_rxBuffer->failed()) { if(_rxBuffer->failed()) {
log_e("%d", errno); log_e("%d", errno);