File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -303,7 +303,7 @@ void ArduinoOTAClass::_runUpdate() {
303303 client.setNoDelay (true );
304304
305305 uint32_t written, total = 0 ;
306- while (!Update.isFinished () && client.connected ()) {
306+ while (!Update.isFinished () && ( client.connected () || client. available () )) {
307307 int waited = 1000 ;
308308 while (!client.available () && waited--)
309309 delay (1 );
Original file line number Diff line number Diff line change @@ -319,7 +319,7 @@ void ESP8266WebServerTemplate<ServerType>::handleClient() {
319319 bool keepCurrentClient = false ;
320320 bool callYield = false ;
321321
322- if (_currentClient.connected ()) {
322+ if (_currentClient.connected () || _currentClient. available () ) {
323323 switch (_currentStatus) {
324324 case HC_NONE:
325325 // No-op to avoid C++ compiler warning
You can’t perform that action at this time.
0 commit comments