Index: webrtc/p2p/base/dtlstransportchannel.cc |
diff --git a/webrtc/p2p/base/dtlstransportchannel.cc b/webrtc/p2p/base/dtlstransportchannel.cc |
index 33b5b6f268e6cbc298f170b8504ca422116939d2..c6a991b20d5bf0d5d731d94bd2ebc561c73d9a17 100644 |
--- a/webrtc/p2p/base/dtlstransportchannel.cc |
+++ b/webrtc/p2p/base/dtlstransportchannel.cc |
@@ -119,6 +119,8 @@ DtlsTransportChannelWrapper::DtlsTransportChannelWrapper( |
&DtlsTransportChannelWrapper::OnRoleConflict); |
channel_->SignalRouteChange.connect(this, |
&DtlsTransportChannelWrapper::OnRouteChange); |
+ channel_->SignalSelectedConnectionChanged.connect( |
+ this, &DtlsTransportChannelWrapper::OnSelectedConnectionChanged); |
channel_->SignalConnectionRemoved.connect(this, |
&DtlsTransportChannelWrapper::OnConnectionRemoved); |
channel_->SignalReceivingState.connect(this, |
@@ -634,6 +636,13 @@ void DtlsTransportChannelWrapper::OnRouteChange( |
SignalRouteChange(this, candidate); |
} |
+void DtlsTransportChannelWrapper::OnSelectedConnectionChanged( |
+ TransportChannel* channel, |
+ Connection* selected_connection) { |
+ ASSERT(channel == channel_); |
+ SignalSelectedConnectionChanged(this, selected_connection); |
+} |
+ |
void DtlsTransportChannelWrapper::OnConnectionRemoved( |
TransportChannelImpl* channel) { |
ASSERT(channel == channel_); |