зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1629565: Fix bug where repeated sRD(offer) could start gathering. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D72235
This commit is contained in:
Родитель
3f2ac1a3c0
Коммит
606eb34163
|
@ -2173,8 +2173,9 @@ void PeerConnectionImpl::OnSetDescriptionSuccess(bool rollback, bool remote) {
|
|||
|
||||
// We do this after queueing the above task, to ensure that ICE state
|
||||
// changes don't start happening before sRD finishes.
|
||||
if (!rollback && (newSignalingState == RTCSignalingState::Have_local_offer ||
|
||||
mSignalingState == RTCSignalingState::Have_remote_offer)) {
|
||||
|
||||
// Did we just apply a local description?
|
||||
if (!remote) {
|
||||
// We'd like to handle this in PeerConnectionMedia::UpdateNetworkState.
|
||||
// Unfortunately, if the WiFi switch happens quickly, we never see
|
||||
// that state change. We need to detect the ice restart here and
|
||||
|
|
Загрузка…
Ссылка в новой задаче