Merge pull request #20121 from prlanzarin/u27/fix/ff-pairselection

fix(audio): broken connection stats on Firefox >= 125
This commit is contained in:
Anton Georgiev 2024-04-30 14:42:35 -04:00 committed by GitHub
commit 54403fb587
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1042,10 +1042,9 @@ class AudioManager {
receivers[0] && receivers[0] &&
receivers[0].transport && receivers[0].transport &&
receivers[0].transport.iceTransport && receivers[0].transport.iceTransport &&
receivers[0].transport.iceTransport typeof receivers[0].transport.iceTransport.getSelectedCandidatePair === 'function'
) { ) {
selectedPair = selectedPair = receivers[0].transport.iceTransport.getSelectedCandidatePair();
receivers[0].transport.iceTransport.getSelectedCandidatePair();
} }
return selectedPair; return selectedPair;