| Index: remoting/protocol/webrtc_connection_to_client.cc
|
| diff --git a/remoting/protocol/webrtc_connection_to_client.cc b/remoting/protocol/webrtc_connection_to_client.cc
|
| index 65df2fc4f4a82e4e47877a133b536a7571dbab59..92430d6d0d0df94171d73760c6e6ed3cd79ca07d 100644
|
| --- a/remoting/protocol/webrtc_connection_to_client.cc
|
| +++ b/remoting/protocol/webrtc_connection_to_client.cc
|
| @@ -155,10 +155,11 @@ void WebrtcConnectionToClient::OnSessionStateChange(Session::State state) {
|
| }
|
|
|
| void WebrtcConnectionToClient::OnWebrtcTransportConnecting() {
|
| - // Create outgoing control channel by initializing |control_dispatcher_|.
|
| - // |event_dispatcher_| is initialized later because event channel is expected
|
| - // to be created by the client.
|
| - control_dispatcher_->Init(transport_->outgoing_channel_factory(), this);
|
| + // Create outgoing control channel. |event_dispatcher_| is initialized later
|
| + // because event channel is expected to be created by the client.
|
| + control_dispatcher_->Init(
|
| + transport_->CreateOutgoingChannel(control_dispatcher_->channel_name()),
|
| + this);
|
| }
|
|
|
| void WebrtcConnectionToClient::OnWebrtcTransportConnected() {
|
|
|