Fix z githubu (originalni repozitar).

This commit is contained in:
Pavel Brychta 2024-04-02 15:04:33 +02:00
parent 5b5da8b117
commit 8890e2851c

View File

@ -212,6 +212,8 @@ public:
uint8_t opcode(){ return _opcode; } uint8_t opcode(){ return _opcode; }
uint8_t len(){ return _len + 2; } uint8_t len(){ return _len + 2; }
size_t send(AsyncClient *client){ size_t send(AsyncClient *client){
if (_finished)
return 0; // fix from https://github.com/me-no-dev/ESPAsyncWebServer/pull/1390/files
_finished = true; _finished = true;
return webSocketSendFrame(client, true, _opcode & 0x0F, _mask, _data, _len); return webSocketSendFrame(client, true, _opcode & 0x0F, _mask, _data, _len);
} }