From fe1fdd27900f06a380c16abb1f9233e91c36ae45 Mon Sep 17 00:00:00 2001 From: rdowning-triax <45574781+rdowning-triax@users.noreply.github.com> Date: Tue, 4 Dec 2018 12:23:34 -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? (#2148) --- 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 0b35a8b2..6669ef59 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);