Don't call CreateDtlsTransport_n from non-network thread in WebRtcSession

I'm not sure if it's possible to hit this code any more, but better
safe than sorry.

BUG=webrtc:7714
TBR=pthatcher@webrtc.org

Review-Url: https://codereview.webrtc.org/2978573002
Cr-Commit-Position: refs/heads/master@{#18960}
This commit is contained in:
deadbeef 2017-07-10 20:06:59 -07:00 committed by Commit Bot
parent 05314c3252
commit d8cf08f166

View File

@ -1095,7 +1095,7 @@ bool WebRtcSession::EnableBundle(const cricket::ContentGroup& bundle) {
bool need_rtcp = (ch->rtcp_dtls_transport() != nullptr);
cricket::DtlsTransportInternal* rtcp_dtls_transport = nullptr;
if (need_rtcp) {
rtcp_dtls_transport = transport_controller_->CreateDtlsTransport_n(
rtcp_dtls_transport = transport_controller_->CreateDtlsTransport(
transport_name, cricket::ICE_CANDIDATE_COMPONENT_RTCP);
}