mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
tick_send: remove unneeded lock around mBio->cansend
This commit is contained in:
parent
d847086911
commit
28458bf10a
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user