std::list instead of shitty self written LinkedList

This commit is contained in:
2020-12-16 23:24:27 +01:00
parent b045eca49e
commit bd4631bd5f
2 changed files with 16 additions and 12 deletions
+3 -1
View File
@@ -33,6 +33,8 @@
#include "AsyncWebSynchronization.h"
#include <list>
#ifdef ESP8266
#include <Hash.h>
#ifdef CRYPTO_HASH_h // include Hash.h from espressif framework if the first include was from the crypto library
@@ -328,7 +330,7 @@ class AsyncWebSocket: public AsyncWebHandler {
// messagebuffer functions/objects.
AsyncWebSocketMessageBuffer * makeBuffer(size_t size = 0);
AsyncWebSocketMessageBuffer * makeBuffer(uint8_t * data, size_t size);
LinkedList<AsyncWebSocketMessageBuffer *> _buffers;
std::list<AsyncWebSocketMessageBuffer> _buffers;
void _cleanBuffers();
AsyncWebSocketClientLinkedList getClients() const;