From 319e10c210eb299dc1fd9e03c0cd10d280a577c3 Mon Sep 17 00:00:00 2001 From: Mathieu Carbou Date: Sun, 29 Sep 2024 21:52:30 +0200 Subject: [PATCH] AsyncWebSocketClient: Fix inconsistent queueLen() in relation to canSend() amd queueIsFull() --- src/AsyncWebSocket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AsyncWebSocket.cpp b/src/AsyncWebSocket.cpp index 4f2925e..b040a9f 100644 --- a/src/AsyncWebSocket.cpp +++ b/src/AsyncWebSocket.cpp @@ -381,7 +381,7 @@ size_t AsyncWebSocketClient::queueLen() const { std::lock_guard lock(_lock); #endif - return _messageQueue.size() + _controlQueue.size(); + return _messageQueue.size(); } bool AsyncWebSocketClient::canSend() const {