We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d518779 commit 1041a9dCopy full SHA for 1041a9d
libraries/ESP8266WebServer/src/ESP8266WebServer-impl.h
@@ -366,7 +366,7 @@ void ESP8266WebServerTemplate<ServerType>::handleClient() {
366
break;
367
case HC_WAIT_CLOSE:
368
// Wait for client to close the connection
369
- if (!_server.available() && (millis() - _statusChange <= HTTP_MAX_CLOSE_WAIT)) {
+ if (!_server.hasClient() && (millis() - _statusChange <= HTTP_MAX_CLOSE_WAIT)) {
370
keepCurrentClient = true;
371
callYield = true;
372
if (_currentClient.available())
0 commit comments