mirror of
https://github.com/me-no-dev/ESPAsyncWebServer.git
synced 2025-09-27 14:50:56 +02:00
Unlock websocket client before closing on ACK
Fraction of commit f7c5c452df5b0918357fc98003aafde9e18304f9 of dumbfixes branch of 0xFEEDC0DE64 fork of ESPAsyncWebServer. Split off for clarity.
This commit is contained in:
@@ -495,6 +495,7 @@ void AsyncWebSocketClient::_onAck(size_t len, uint32_t time){
|
||||
if(_status == WS_DISCONNECTING && head.opcode() == WS_DISCONNECT){
|
||||
_controlQueue.pop_front();
|
||||
_status = WS_DISCONNECTED;
|
||||
l.unlock();
|
||||
_client->close(true);
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user