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:
Me No Dev 2016-06-28 13:35:32 +03:00
parent 082e6e7039
commit dce6d35ad4
1 changed files with 1 additions and 1 deletions

View File

@ -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;