Index: webrtc/p2p/base/transport.cc |
diff --git a/webrtc/p2p/base/transport.cc b/webrtc/p2p/base/transport.cc |
index a1988820ed335ba3917e7bd2acabec6ac008e098..f523502c21c7942536d64dc89d109bbac8a074ed 100644 |
--- a/webrtc/p2p/base/transport.cc |
+++ b/webrtc/p2p/base/transport.cc |
@@ -227,21 +227,7 @@ void Transport::ConnectChannels() { |
connect_requested_ = true; |
- if (!local_description_) { |
- // TOOD(mallinath) : TransportDescription(TD) shouldn't be generated here. |
- // As Transport must know TD is offer or answer and cricket::Transport |
- // doesn't have the capability to decide it. This should be set by the |
- // Session. |
- // Session must generate local TD before remote candidates pushed when |
- // initiate request initiated by the remote. |
- LOG(LS_INFO) << "Transport::ConnectChannels: No local description has " |
- << "been set. Will generate one."; |
- TransportDescription desc(std::vector<std::string>(), |
- rtc::CreateRandomString(ICE_UFRAG_LENGTH), |
- rtc::CreateRandomString(ICE_PWD_LENGTH), |
- ICEMODE_FULL, CONNECTIONROLE_NONE, nullptr); |
- SetLocalTransportDescription(desc, CA_OFFER, nullptr); |
- } |
+ RTC_DCHECK(local_description_); |
CallChannels(&TransportChannelImpl::Connect); |
} |