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:
1 parent
082e6e7039
commit
dce6d35ad4
1 file changed
+1
-1
@@ -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