tick_send: remove unneeded lock around mBio->cansend

This commit is contained in:
jolavillette 2020-05-04 08:11:57 +02:00
parent d847086911
commit 28458bf10a

View File

@ -313,17 +313,16 @@ int pqistreamer::tick_recv(uint32_t timeout)
int pqistreamer::tick_send(uint32_t timeout) int pqistreamer::tick_send(uint32_t timeout)
{ {
RsStackMutex stack(mStreamerMtx); /**** LOCKED MUTEX ****/ /* short circuit everything if bio isn't active */
/* short circuit everything is bio isn't active */
if (!(mBio->isactive())) if (!(mBio->isactive()))
{ {
free_pend(); free_pend();
return 0; return 0;
} }
if (mBio->cansend(timeout)) if (mBio->cansend(timeout))
{ {
RsStackMutex stack(mStreamerMtx); /**** LOCKED MUTEX ****/
handleoutgoing_locked(); handleoutgoing_locked();
} }