Fix HTTP client returning disconnected when there is still data avalable

This commit is contained in:
me-no-dev 2018-07-10 21:06:20 +02:00
parent 4e9d1ee237
commit ff90778173

View File

@ -252,7 +252,7 @@ void HTTPClient::end(void)
bool HTTPClient::connected() bool HTTPClient::connected()
{ {
if(_tcp) { if(_tcp) {
return (_tcp->connected() || (_tcp->available() > 0)); return ((_tcp->available() > 0) || _tcp->connected());
} }
return false; return false;
} }