Skip to content

Commit fe1fdd2

Browse files
rdowning-triaxme-no-dev
authored andcommitted
espressif#2147 available() shouldn't return 0 after disconnect if there is still data in the buffer. Otherwise, how would we know it was there? (espressif#2148)
1 parent af7e489 commit fe1fdd2

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

libraries/WiFi/src/WiFiClient.cpp

-3
Original file line numberDiff line numberDiff line change
@@ -398,9 +398,6 @@ int WiFiClient::peek()
398398

399399
int WiFiClient::available()
400400
{
401-
if(!_connected) {
402-
return 0;
403-
}
404401
int res = _rxBuffer->available();
405402
if(_rxBuffer->failed()) {
406403
log_e("%d", errno);

0 commit comments

Comments
 (0)