Chromium Code Reviews| Index: webrtc/p2p/base/p2ptransportchannel.cc |
| diff --git a/webrtc/p2p/base/p2ptransportchannel.cc b/webrtc/p2p/base/p2ptransportchannel.cc |
| index 623085f9a8cc5ef9e3193765834d3d6c7a25edd6..d9df9987d42589b3f2a4bfef9ad611315af21eec 100644 |
| --- a/webrtc/p2p/base/p2ptransportchannel.cc |
| +++ b/webrtc/p2p/base/p2ptransportchannel.cc |
| @@ -604,14 +604,7 @@ void P2PTransportChannel::OnUnknownAddress( |
| << (remote_candidate_is_new ? "peer reflexive" : "resurrected") |
| << " candidate: " << remote_candidate.ToString(); |
| AddConnection(connection); |
| - connection->ReceivedPing(); |
| - |
| - bool received_use_candidate = |
| - stun_msg->GetByteString(STUN_ATTR_USE_CANDIDATE) != nullptr; |
| - if (received_use_candidate && ice_role_ == ICEROLE_CONTROLLED) { |
| - connection->set_nominated(true); |
| - OnNominated(connection); |
| - } |
| + connection->HandleBindingRequest(stun_msg); |
|
pthatcher1
2015/11/11 01:19:12
I like this cleanup.
honghaiz3
2015/11/11 19:28:09
Acknowledged.
|
| // Update the list of connections since we just added another. We do this |
| // after sending the response since it could (in principle) delete the |