From c19d5b8093e59b9d80bb1835a381500784ccb7bb Mon Sep 17 00:00:00 2001 From: "AzureAD\\RyanDowning" Date: Mon, 3 Dec 2018 15:12:26 -0500 Subject: [PATCH] #2147 available() shouldn't return 0 after disconnect if there is still data in the buffer. Otherwise, how would we know it was there? --- libraries/WiFi/src/WiFiClient.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/libraries/WiFi/src/WiFiClient.cpp b/libraries/WiFi/src/WiFiClient.cpp index 0b35a8b2e81..6669ef59baf 100644 --- a/libraries/WiFi/src/WiFiClient.cpp +++ b/libraries/WiFi/src/WiFiClient.cpp @@ -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);