Skip to content

Commit

Permalink
#2147 available() shouldn't return 0 after disconnect if there is sti…
Browse files Browse the repository at this point in the history
…ll data in the buffer. Otherwise, how would we know it was there? (#2148)
  • Loading branch information
rdowning-triax authored and me-no-dev committed Dec 4, 2018
1 parent af7e489 commit fe1fdd2
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions libraries/WiFi/src/WiFiClient.cpp
Expand Up @@ -398,9 +398,6 @@ int WiFiClient::peek()

int WiFiClient::available()
{
if(!_connected) {
return 0;
}
int res = _rxBuffer->available();
if(_rxBuffer->failed()) {
log_e("%d", errno);
Expand Down

0 comments on commit fe1fdd2

Please sign in to comment.