mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-29 14:18:49 +03:00
Ignore empty remote ICE candidates
This commit is contained in:
parent
b6563d9ffe
commit
124952a11c
1 changed files with 6 additions and 2 deletions
|
@ -426,8 +426,12 @@ WebRTCSession::acceptICECandidates(
|
|||
for (const auto &c : candidates) {
|
||||
nhlog::ui()->debug(
|
||||
"WebRTC: remote candidate: (m-line:{}):{}", c.sdpMLineIndex, c.candidate);
|
||||
g_signal_emit_by_name(
|
||||
webrtc_, "add-ice-candidate", c.sdpMLineIndex, c.candidate.c_str());
|
||||
if (!c.candidate.empty()) {
|
||||
g_signal_emit_by_name(webrtc_,
|
||||
"add-ice-candidate",
|
||||
c.sdpMLineIndex,
|
||||
c.candidate.c_str());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue