mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-31 10:19:24 -04:00
enabled buffering for distant chat, so that msgs are sent when the tunnel is ok
This commit is contained in:
parent
bae85aac53
commit
09343e9179
3 changed files with 13 additions and 7 deletions
|
@ -112,6 +112,8 @@ int p3GxsTunnelService::tick()
|
|||
#endif
|
||||
|
||||
flush() ;
|
||||
|
||||
rstime::rs_usleep(1000*200);
|
||||
|
||||
return 0 ;
|
||||
}
|
||||
|
@ -1294,8 +1296,7 @@ bool p3GxsTunnelService::locked_sendEncryptedTunnelData(RsGxsTunnelItem *item)
|
|||
}
|
||||
if(it->second.status != RS_GXS_TUNNEL_STATUS_CAN_TALK)
|
||||
{
|
||||
std::cerr << "(EE) Cannot talk to tunnel id " << tunnel_id
|
||||
<< ". Tunnel status is: " << it->second.status << std::endl;
|
||||
std::cerr << "(EE) Cannot talk to tunnel id " << tunnel_id << ". Tunnel status is: " << it->second.status << std::endl;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue