1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-21 10:26:06 +03:00

Fix for occasional WebServer timeout issues (#8944)

Fixes #8941
This commit is contained in:
supersjellie 2023-06-14 17:22:27 +02:00 committed by GitHub
parent e05656bd78
commit 8b33e2e250
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -281,14 +281,13 @@ void ESP8266WebServerTemplate<ServerType>::serveStatic(const char* uri, FS& fs,
template <typename ServerType>
void ESP8266WebServerTemplate<ServerType>::handleClient() {
if (_currentStatus == HC_NONE) {
ClientType client = _server.accept();
if (!client) {
_currentClient = _server.accept();
if (!_currentClient) {
return;
}
DBGWS("New client\n");
_currentClient = client;
_currentStatus = HC_WAIT_READ;
_statusChange = millis();
}