Commit fe1fdd27 authored by rdowning-triax's avatar rdowning-triax Committed by Me No Dev

#2147 available() shouldn't return 0 after disconnect if there is still data...

#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)
parent af7e489f
...@@ -398,9 +398,6 @@ int WiFiClient::peek() ...@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment