| Index: webrtc/api/webrtcsession.cc
|
| diff --git a/webrtc/api/webrtcsession.cc b/webrtc/api/webrtcsession.cc
|
| index df4a48a7aa4629890d225daa4b0c05bc888554ef..ded3023653247f827c2db0b6fa47f40a1a498aee 100644
|
| --- a/webrtc/api/webrtcsession.cc
|
| +++ b/webrtc/api/webrtcsession.cc
|
| @@ -1274,7 +1274,9 @@ bool WebRtcSession::SendData(const cricket::SendDataParams& params,
|
|
|
| bool WebRtcSession::ConnectDataChannel(DataChannel* webrtc_data_channel) {
|
| if (!data_channel_) {
|
| - LOG(LS_ERROR) << "ConnectDataChannel called when data_channel_ is NULL.";
|
| + // Don't log an error here, because DataChannels are expected to call
|
| + // ConnectDataChannel in this state. It's the only way to initially tell
|
| + // whether or not the underlying transport is ready.
|
| return false;
|
| }
|
| data_channel_->SignalReadyToSendData.connect(webrtc_data_channel,
|
|
|