提交 e1548e9b 编写于 作者: R Roman Savrulin 提交者: Me No Dev

Fix hang on client disconnect during upload (#2914)

上级 c29ec9da
......@@ -303,6 +303,7 @@ void WebServer::_uploadWriteByte(uint8_t b){
}
int WebServer::_uploadReadByte(WiFiClient& client){
if (!client.connected()) return -1;
int res = client.read();
if(res < 0) {
// keep trying until you either read a valid byte or timeout
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册