@@ -311,12 +311,12 @@ void AsyncWebSocketClient::_onAck(size_t len, uint32_t time) {
311311#ifdef  ESP32
312312          /* 
313313            Unlocking has to be called before return execution otherwise std::unique_lock ::~unique_lock() will get an exception pthread_mutex_unlock. 
314-             Due to _client->close(true ) shall call the callback function _onDisconnect() 
314+             Due to _client->close() shall call the callback function _onDisconnect() 
315315            The calling flow _onDisconnect() --> _handleDisconnect() --> ~AsyncWebSocketClient() 
316316          */  
317317          lock.unlock ();
318318#endif 
319-           _client->close (true );
319+           _client->close ();
320320        }
321321        return ;
322322      }
@@ -423,12 +423,12 @@ bool AsyncWebSocketClient::_queueMessage(AsyncWebSocketSharedBuffer buffer, uint
423423#ifdef  ESP32
424424        /* 
425425          Unlocking has to be called before return execution otherwise std::unique_lock ::~unique_lock() will get an exception pthread_mutex_unlock. 
426-           Due to _client->close(true ) shall call the callback function _onDisconnect() 
426+           Due to _client->close() shall call the callback function _onDisconnect() 
427427          The calling flow _onDisconnect() --> _handleDisconnect() --> ~AsyncWebSocketClient() 
428428        */  
429429        lock.unlock ();
430430#endif 
431-         _client->close (true );
431+         _client->close ();
432432      }
433433
434434      async_ws_log_e (" Too many messages queued: closing connection" 
@@ -497,7 +497,7 @@ void AsyncWebSocketClient::_onTimeout(uint32_t time) {
497497  }
498498  //  Serial.println("onTime");
499499  (void )time;
500-   _client->close (true );
500+   _client->close ();
501501}
502502
503503void  AsyncWebSocketClient::_onDisconnect () {
@@ -582,7 +582,7 @@ void AsyncWebSocketClient::_onData(void *pbuf, size_t plen) {
582582        if  (_status == WS_DISCONNECTING) {
583583          _status = WS_DISCONNECTED;
584584          if  (_client) {
585-             _client->close (true );
585+             _client->close ();
586586          }
587587        } else  {
588588          _status = WS_DISCONNECTING;
@@ -1287,7 +1287,7 @@ AsyncWebSocketResponse::AsyncWebSocketResponse(const String &key, AsyncWebSocket
12871287
12881288void  AsyncWebSocketResponse::_respond (AsyncWebServerRequest *request) {
12891289  if  (_state == RESPONSE_FAILED) {
1290-     request->client ()->close (true );
1290+     request->client ()->close ();
12911291    return ;
12921292  }
12931293  String out;
0 commit comments