mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-25 20:02:37 +03:00
webhook/http1.1: prevent from losing a new client while waiting (#7492)
This commit is contained in:
parent
d5187790bd
commit
1041a9d752
@ -366,7 +366,7 @@ void ESP8266WebServerTemplate<ServerType>::handleClient() {
|
|||||||
break;
|
break;
|
||||||
case HC_WAIT_CLOSE:
|
case HC_WAIT_CLOSE:
|
||||||
// Wait for client to close the connection
|
// Wait for client to close the connection
|
||||||
if (!_server.available() && (millis() - _statusChange <= HTTP_MAX_CLOSE_WAIT)) {
|
if (!_server.hasClient() && (millis() - _statusChange <= HTTP_MAX_CLOSE_WAIT)) {
|
||||||
keepCurrentClient = true;
|
keepCurrentClient = true;
|
||||||
callYield = true;
|
callYield = true;
|
||||||
if (_currentClient.available())
|
if (_currentClient.available())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user