| Index: third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp
|
| diff --git a/third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp b/third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp
|
| index 8fd23dbfde05e35696379d469a3dd8f9f52d2975..d7b7f965bac5e4440974c82bdab507146b3c5fde 100644
|
| --- a/third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp
|
| +++ b/third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp
|
| @@ -1395,7 +1395,12 @@ void RTCPeerConnection::changeSignalingState(SignalingState signalingState) {
|
|
|
| void RTCPeerConnection::changeIceGatheringState(
|
| ICEGatheringState iceGatheringState) {
|
| - m_iceGatheringState = iceGatheringState;
|
| + if (m_iceConnectionState != ICEConnectionStateClosed &&
|
| + m_iceGatheringState != iceGatheringState) {
|
| + m_iceGatheringState = iceGatheringState;
|
| + scheduleDispatchEvent(
|
| + Event::create(EventTypeNames::icegatheringstatechange));
|
| + }
|
| }
|
|
|
| bool RTCPeerConnection::setIceConnectionState(
|
| @@ -1427,7 +1432,6 @@ void RTCPeerConnection::closeInternal() {
|
| m_closed = true;
|
|
|
| changeIceConnectionState(ICEConnectionStateClosed);
|
| - changeIceGatheringState(ICEGatheringStateComplete);
|
| changeSignalingState(SignalingStateClosed);
|
| Document* document = toDocument(getExecutionContext());
|
| HostsUsingFeatures::countAnyWorld(
|
|
|