| 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 85cb675df52591ff30a073a66e2606b8d9868286..8c2f12f68ef3541352b8d324a90608696541fdb1 100644
|
| --- a/third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp
|
| +++ b/third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp
|
| @@ -1389,7 +1389,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(
|
| @@ -1421,7 +1426,6 @@ void RTCPeerConnection::closeInternal() {
|
| m_closed = true;
|
|
|
| changeIceConnectionState(ICEConnectionStateClosed);
|
| - changeIceGatheringState(ICEGatheringStateComplete);
|
| changeSignalingState(SignalingStateClosed);
|
| Document* document = toDocument(getExecutionContext());
|
| HostsUsingFeatures::countAnyWorld(
|
|
|