Fix HTTP client returning disconnected when there is still data avalable
This commit is contained in:
parent
4e9d1ee237
commit
ff90778173
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user