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() {
303
303
client.setNoDelay (true );
304
304
305
305
uint32_t written, total = 0 ;
306
- while (!Update.isFinished () && client.connected ()) {
306
+ while (!Update.isFinished () && ( client.connected () || client. available () )) {
307
307
int waited = 1000 ;
308
308
while (!client.available () && waited--)
309
309
delay (1 );
Original file line number Diff line number Diff line change @@ -319,7 +319,7 @@ void ESP8266WebServerTemplate<ServerType>::handleClient() {
319
319
bool keepCurrentClient = false ;
320
320
bool callYield = false ;
321
321
322
- if (_currentClient.connected ()) {
322
+ if (_currentClient.connected () || _currentClient. available () ) {
323
323
switch (_currentStatus) {
324
324
case HC_NONE:
325
325
// No-op to avoid C++ compiler warning
You can’t perform that action at this time.
0 commit comments