void RTCPeerConnection::close(ExceptionCode& ec) { if (m_readyState == ReadyStateClosing || m_readyState == ReadyStateClosed) { ec = INVALID_STATE_ERR; return; } changeIceState(IceStateClosed); changeReadyState(ReadyStateClosed); stop(); }
void PeerConnection00::stop() { if (m_readyState == CLOSED) return; if (m_peerHandler) m_peerHandler->stop(); m_peerHandler.clear(); changeReadyState(CLOSED); changeIceState(ICE_CLOSED); }
void PeerConnection00::didChangeReadyState(uint32_t newState) { ASSERT(scriptExecutionContext()->isContextThread()); changeReadyState(static_cast<ReadyState>(newState)); }
void RTCPeerConnection::didChangeReadyState(ReadyState newState) { ASSERT(scriptExecutionContext()->isContextThread()); changeReadyState(newState); }