Skip to content

Commit

Permalink
Fix HTTP client returning disconnected when there is still data avalable
Browse files Browse the repository at this point in the history
  • Loading branch information
me-no-dev committed Jul 10, 2018
1 parent 4e9d1ee commit ff90778
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/HTTPClient/src/HTTPClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit ff90778

Please sign in to comment.