Skip to content

Commit 1e8d966

Browse files
committed
Unlock websocket client before closing on ACK
Fraction of commit f7c5c45 of dumbfixes branch of 0xFEEDC0DE64 fork of ESPAsyncWebServer. Split off for clarity.
1 parent 9509bdc commit 1e8d966

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/AsyncWebSocket.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,7 @@ void AsyncWebSocketClient::_onAck(size_t len, uint32_t time){
495495
if(_status == WS_DISCONNECTING && head.opcode() == WS_DISCONNECT){
496496
_controlQueue.pop_front();
497497
_status = WS_DISCONNECTED;
498+
l.unlock();
498499
_client->close(true);
499500
return;
500501
}

0 commit comments

Comments
 (0)