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,9 +313,7 @@ int pqistreamer::tick_recv(uint32_t timeout)
int pqistreamer::tick_send(uint32_t timeout)
{
RsStackMutex stack(mStreamerMtx); /**** LOCKED MUTEX ****/
/* short circuit everything is bio isn't active */
/* short circuit everything if bio isn't active */
if (!(mBio->isactive()))
{
free_pend();
@ -324,6 +322,7 @@ int pqistreamer::tick_send(uint32_t timeout)
if (mBio->cansend(timeout))
{
RsStackMutex stack(mStreamerMtx); /**** LOCKED MUTEX ****/
handleoutgoing_locked();
}