Alex Villacís Lasso d5cf17ff65 Clear write queue BEFORE calling discard callback
The discard callback (installed via onDisconnect()) can legitimately
decide to destroy the AsyncTCP client, calling the destructors which in
turn invalidate the write mutex object. Prior to this commit, calling
_clearWriteQueue() (which takes said write mutex) risked accessing
uninitialized memory and causing memory corruption. Fixed.
2021-02-16 19:54:43 -05:00
2020-12-21 12:59:04 -05:00
2020-12-21 12:59:04 -05:00
Description
No description provided
95 KiB
Languages
C++ 100%