enabled buffering for distant chat, so that msgs are sent when the tunnel is ok

This commit is contained in:
csoler 2019-10-12 21:05:27 +02:00
parent bae85aac53
commit 09343e9179
No known key found for this signature in database
GPG key ID: 7BCA522266C0804C
3 changed files with 13 additions and 7 deletions

View file

@ -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;
}