| Index: Source/WebCore/Modules/mediastream/RTCPeerConnection.cpp
|
| ===================================================================
|
| --- Source/WebCore/Modules/mediastream/RTCPeerConnection.cpp (revision 143283)
|
| +++ Source/WebCore/Modules/mediastream/RTCPeerConnection.cpp (working copy)
|
| @@ -162,6 +162,7 @@
|
|
|
| RTCPeerConnection::~RTCPeerConnection()
|
| {
|
| + stop();
|
| }
|
|
|
| void RTCPeerConnection::createOffer(PassRefPtr<RTCSessionDescriptionCallback> successCallback, PassRefPtr<RTCErrorCallback> errorCallback, const Dictionary& mediaConstraints, ExceptionCode& ec)
|
| @@ -590,6 +591,9 @@
|
|
|
| void RTCPeerConnection::stop()
|
| {
|
| + if (m_stopped)
|
| + return;
|
| +
|
| m_stopped = true;
|
| m_iceConnectionState = IceConnectionStateClosed;
|
| m_signalingState = SignalingStateClosed;
|
|
|