Plug mutex semaphore leak

Introduced by previous commit. This prevents a leak of one mutex
semaphore structure per destroyed client socket.
This commit is contained in:
Alex Villacís Lasso
2020-12-23 11:08:14 -05:00
parent 2bb8788ec1
commit c35a1f2079

View File

@@ -286,6 +286,7 @@ AsyncClient::AsyncClient(int sockfd)
AsyncClient::~AsyncClient() AsyncClient::~AsyncClient()
{ {
if (_socket != -1) _close(); if (_socket != -1) _close();
vSemaphoreDelete(_write_mutex);
} }
void AsyncClient::setRxTimeout(uint32_t timeout){ void AsyncClient::setRxTimeout(uint32_t timeout){