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:
Byron Campen [:bwc] 2020-04-27 14:47:44 +00:00
Родитель 3f2ac1a3c0
Коммит 606eb34163
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -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