mirror of
				https://github.com/eledio-devices/thirdparty-AsyncTCPSock.git
				synced 2025-10-31 16:14:15 +01:00 
			
		
		
		
	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:
		| @@ -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){ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user