提交 ff907781 编写于 作者: M me-no-dev

Fix HTTP client returning disconnected when there is still data avalable

上级 4e9d1ee2
...@@ -252,7 +252,7 @@ void HTTPClient::end(void) ...@@ -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;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册