Index: webrtc/p2p/base/turnport.cc |
diff --git a/webrtc/p2p/base/turnport.cc b/webrtc/p2p/base/turnport.cc |
index 022207aa5b82f157ea15ca919e7d8c75b9f8c7b9..5ed93dd1d84a05b445aeaeeeed47b3ab26172c3d 100644 |
--- a/webrtc/p2p/base/turnport.cc |
+++ b/webrtc/p2p/base/turnport.cc |
@@ -351,6 +351,8 @@ bool TurnPort::CreateTurnClientSocket() { |
socket_->SignalReadyToSend.connect(this, &TurnPort::OnReadyToSend); |
+ socket_->SignalSentPacket.connect(this, &TurnPort::OnSentPacket); |
+ |
// TCP port is ready to send stun requests after the socket is connected, |
// while UDP port is ready to do so once the socket is created. |
if (server_address_.proto == PROTO_TCP) { |
@@ -582,6 +584,11 @@ void TurnPort::OnReadPacket( |
} |
} |
+void TurnPort::OnSentPacket(rtc::AsyncPacketSocket* socket, |
+ const rtc::SentPacket& sent_packet) { |
+ PortInterface::SignalSentPacket(sent_packet); |
+} |
+ |
void TurnPort::OnReadyToSend(rtc::AsyncPacketSocket* socket) { |
if (ready()) { |
Port::OnReadyToSend(); |