Index: webrtc/p2p/base/p2ptransportchannel.cc |
diff --git a/webrtc/p2p/base/p2ptransportchannel.cc b/webrtc/p2p/base/p2ptransportchannel.cc |
index 8cb1ffe8bc25d7b0380eadb8ff9fe5c117f3393a..eafbb6d172ba4422b7574baa4af211109975eeab 100644 |
--- a/webrtc/p2p/base/p2ptransportchannel.cc |
+++ b/webrtc/p2p/base/p2ptransportchannel.cc |
@@ -983,6 +983,7 @@ int P2PTransportChannel::SendPacket(const char *data, size_t len, |
return -1; |
} |
+ last_sent_packet_id_ = options.packet_id; |
int sent = best_connection_->Send(data, len, options); |
if (sent <= 0) { |
ASSERT(sent < 0); |
@@ -1168,7 +1169,8 @@ void P2PTransportChannel::SwitchBestConnectionTo(Connection* conn) { |
} |
// TODO(honghaiz): rename best_connection_ with selected_connection_ or |
// selected_candidate pair_. |
- SignalSelectedCandidatePairChanged(this, best_connection_); |
+ SignalSelectedCandidatePairChanged(this, best_connection_, |
+ last_sent_packet_id_); |
} |
// Warning: UpdateState should eventually be called whenever a connection |