1
0
mirror of https://github.com/danog/libtgvoip.git synced 2024-11-30 04:39:03 +01:00
This commit is contained in:
Grishka 2019-02-07 16:14:24 +03:00
parent cfd62e66a8
commit fc13464b35

View File

@ -1439,6 +1439,7 @@ void VoIPController::InitUDPProxy(){
string proxyHostPort(sbuf); string proxyHostPort(sbuf);
if(proxyHostPort==lastTestedProxyServer && !proxySupportsUDP){ if(proxyHostPort==lastTestedProxyServer && !proxySupportsUDP){
LOGI("Proxy does not support UDP - using UDP directly instead"); LOGI("Proxy does not support UDP - using UDP directly instead");
ResetUdpAvailability();
return; return;
} }
@ -3316,6 +3317,7 @@ void VoIPController::SetupOutgoingVideoStream(){
#pragma mark - Timer methods #pragma mark - Timer methods
void VoIPController::SendUdpPings(){ void VoIPController::SendUdpPings(){
LOGW("Send udp pings");
MutexGuard m(endpointsMutex); MutexGuard m(endpointsMutex);
for(pair<const int64_t, Endpoint>& e:endpoints){ for(pair<const int64_t, Endpoint>& e:endpoints){
if(e.second.type==Endpoint::Type::UDP_RELAY){ if(e.second.type==Endpoint::Type::UDP_RELAY){