Commit ff907781 authored by me-no-dev's avatar me-no-dev

Fix HTTP client returning disconnected when there is still data avalable

parent 4e9d1ee2
......@@ -252,7 +252,7 @@ void HTTPClient::end(void)
bool HTTPClient::connected()
{
if(_tcp) {
return (_tcp->connected() || (_tcp->available() > 0));
return ((_tcp->available() > 0) || _tcp->connected());
}
return false;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment