mirror of
https://github.com/me-no-dev/ESPAsyncWebServer.git
synced 2025-09-28 15:21:03 +02:00
AsyncWebSocketClient: Fix inconsistent queueLen() in relation to canSend() amd queueIsFull()
This commit is contained in:
@@ -381,7 +381,7 @@ size_t AsyncWebSocketClient::queueLen() const {
|
|||||||
std::lock_guard<std::mutex> lock(_lock);
|
std::lock_guard<std::mutex> lock(_lock);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return _messageQueue.size() + _controlQueue.size();
|
return _messageQueue.size();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool AsyncWebSocketClient::canSend() const {
|
bool AsyncWebSocketClient::canSend() const {
|
||||||
|
Reference in New Issue
Block a user