Scrub write mutex ptr immediately after destroying it

In order to detect possible memory corruption.
This commit is contained in:
Alex Villacís Lasso
2021-02-16 18:27:43 -05:00
parent 36ceb07da4
commit caefb971a4

View File

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