Commit e1548e9b authored by Roman Savrulin's avatar Roman Savrulin Committed by Me No Dev

Fix hang on client disconnect during upload (#2914)

parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment