From dce6d35ad48bdc419d9364a3d8dedb91e6039d4a Mon Sep 17 00:00:00 2001 From: Me No Dev Date: Tue, 28 Jun 2016 13:35:32 +0300 Subject: [PATCH] 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 --- src/AsyncWebSocket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AsyncWebSocket.cpp b/src/AsyncWebSocket.cpp index f88a1c0..59f1336 100644 --- a/src/AsyncWebSocket.cpp +++ b/src/AsyncWebSocket.cpp @@ -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;