mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-05 23:55:35 -04:00
attempt to fix thread race between rsEvents and TokenQueue
This commit is contained in:
parent
b6ca07aaa3
commit
e402630095
4 changed files with 9 additions and 5 deletions
|
@ -1296,7 +1296,9 @@ bool p3GxsTunnelService::locked_sendEncryptedTunnelData(RsGxsTunnelItem *item)
|
|||
}
|
||||
if(it->second.status != RS_GXS_TUNNEL_STATUS_CAN_TALK)
|
||||
{
|
||||
#ifdef DEBUG_GXS_TUNNEL
|
||||
std::cerr << "(EE) Cannot talk to tunnel id " << tunnel_id << ". Tunnel status is: " << it->second.status << std::endl;
|
||||
#endif
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
@ -404,11 +404,10 @@ int p3MsgService::checkOutgoingMessages()
|
|||
mit->second->msgFlags |= RS_MSG_FLAGS_ROUTED;
|
||||
}
|
||||
}
|
||||
#ifdef DEBUG_DISTANT_MSG
|
||||
else
|
||||
{
|
||||
Dbg3() << __PRETTY_FUNCTION__ << " Delaying until available..."
|
||||
<< std::endl;
|
||||
}
|
||||
Dbg3() << __PRETTY_FUNCTION__ << " Delaying until available..." << std::endl;
|
||||
#endif
|
||||
}
|
||||
|
||||
/* clean up */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue