| Index: Source/WebCore/Modules/mediastream/RTCPeerConnection.cpp
|
| ===================================================================
|
| --- Source/WebCore/Modules/mediastream/RTCPeerConnection.cpp (revision 143163)
|
| +++ Source/WebCore/Modules/mediastream/RTCPeerConnection.cpp (working copy)
|
| @@ -163,6 +163,7 @@
|
|
|
| RTCPeerConnection::~RTCPeerConnection()
|
| {
|
| + stop();
|
| }
|
|
|
| void RTCPeerConnection::createOffer(PassRefPtr<RTCSessionDescriptionCallback> successCallback, PassRefPtr<RTCErrorCallback> errorCallback, const Dictionary& mediaConstraints, ExceptionCode& ec)
|
| @@ -565,6 +566,9 @@
|
|
|
| void RTCPeerConnection::stop()
|
| {
|
| + if (m_stopped)
|
| + return;
|
| +
|
| m_stopped = true;
|
| m_iceState = IceStateClosed;
|
| m_readyState = ReadyStateClosed;
|
|
|