close the web socket instead of aborting it
latest ESPAsyncTCP commits are needed for this to properly work fixing: https://github.com/me-no-dev/ESPAsyncWebServer/issues/48
This commit is contained in:
parent
082e6e7039
commit
dce6d35ad4
|
@ -285,7 +285,7 @@ void AsyncWebSocketClient::_onAck(size_t len, uint32_t time){
|
|||
if(_status == WS_DISCONNECTING && controlMessage->opcode() == WS_DISCONNECT){
|
||||
delete controlMessage;
|
||||
_status = WS_DISCONNECTED;
|
||||
_client->abort();
|
||||
_client->close(true);
|
||||
return;
|
||||
}
|
||||
delete controlMessage;
|
||||
|
|
Loading…
Reference in New Issue