mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-27 04:35:34 +08:00
1.Fix rtp packet memory leakage; 2.Retry candidates gathering when failed
This commit is contained in:
@@ -197,7 +197,11 @@ int IceTransmission::JoinTransmission() {
|
||||
}
|
||||
|
||||
int IceTransmission::GatherCandidates() {
|
||||
ice_agent_->GatherCandidates();
|
||||
int ret = ice_agent_->GatherCandidates();
|
||||
while (ret) {
|
||||
LOG_ERROR("Gather candidates failed, retry");
|
||||
ret = ice_agent_->GatherCandidates();
|
||||
}
|
||||
LOG_INFO("[{}] Gather candidates", user_id_);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user