提交 fe1fdd27 编写于 作者: R rdowning-triax 提交者: Me No Dev

#2147 available() shouldn't return 0 after disconnect if there is still data...

#2147 available() shouldn't return 0 after disconnect if there is still data in the buffer. Otherwise, how would we know it was there? (#2148)
上级 af7e489f
......@@ -398,9 +398,6 @@ int WiFiClient::peek()
int WiFiClient::available()
{
if(!_connected) {
return 0;
}
int res = _rxBuffer->available();
if(_rxBuffer->failed()) {
log_e("%d", errno);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册