Skip to content
Snippets Groups Projects
Commit 376bc44b authored by Nicolas Bayet's avatar Nicolas Bayet
Browse files

[FIX] web_editor: properly add iceCandidateBuffer

Before this commit, the iceCandidateBuffer was emptied before finishing
the loop. This is wrong as we must add all candidates from the buffer.

X-original-commit: 520a8805
Part-of: odoo/odoo#112170
parent 1e6e482a
No related branches found
No related tags found
No related merge requests found
......@@ -140,8 +140,8 @@ const baseNotificationMethods = {
if (clientInfos.iceCandidateBuffer.length) {
for (const candidate of clientInfos.iceCandidateBuffer) {
await this._addIceCandidate(clientInfos, candidate);
clientInfos.iceCandidateBuffer.splice(0);
}
clientInfos.iceCandidateBuffer.splice(0);
}
if (description.type === 'offer') {
const answerDescription = await pc.createAnswer();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment