Index: webrtc/p2p/base/dtlstransportchannel.cc |
diff --git a/webrtc/p2p/base/dtlstransportchannel.cc b/webrtc/p2p/base/dtlstransportchannel.cc |
index bba7eb9de7f8f22504d3b045a1af54b05f0bee7b..148a19108d4149ea76ba9680375037ebb398aae9 100644 |
--- a/webrtc/p2p/base/dtlstransportchannel.cc |
+++ b/webrtc/p2p/base/dtlstransportchannel.cc |
@@ -101,6 +101,8 @@ DtlsTransportChannelWrapper::DtlsTransportChannelWrapper( |
&DtlsTransportChannelWrapper::OnWritableState); |
channel_->SignalReadPacket.connect(this, |
&DtlsTransportChannelWrapper::OnReadPacket); |
+ channel_->SignalSentPacket.connect( |
+ this, &DtlsTransportChannelWrapper::OnSentPacket); |
channel_->SignalReadyToSend.connect(this, |
&DtlsTransportChannelWrapper::OnReadyToSend); |
channel_->SignalGatheringState.connect( |
@@ -510,6 +512,14 @@ void DtlsTransportChannelWrapper::OnReadPacket( |
} |
} |
+void DtlsTransportChannelWrapper::OnSentPacket( |
+ TransportChannel* channel, |
+ const rtc::SentPacket& sent_packet) { |
+ ASSERT(rtc::Thread::Current() == worker_thread_); |
+ |
+ SignalSentPacket(this, sent_packet); |
+} |
+ |
void DtlsTransportChannelWrapper::OnReadyToSend(TransportChannel* channel) { |
if (writable()) { |
SignalReadyToSend(this); |