forked from me-no-dev/ESPAsyncWebServer
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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user