mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-20 04:14:27 -04:00
tick_send: remove unneeded lock around mBio->cansend
This commit is contained in:
parent
d847086911
commit
28458bf10a
1 changed files with 3 additions and 4 deletions
|
@ -313,9 +313,7 @@ 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();
|
||||||
|
@ -324,6 +322,7 @@ int pqistreamer::tick_send(uint32_t timeout)
|
||||||
|
|
||||||
if (mBio->cansend(timeout))
|
if (mBio->cansend(timeout))
|
||||||
{
|
{
|
||||||
|
RsStackMutex stack(mStreamerMtx); /**** LOCKED MUTEX ****/
|
||||||
handleoutgoing_locked();
|
handleoutgoing_locked();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue