#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:
parent
af7e489f01
commit
fe1fdd2790
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user