Index: webrtc/p2p/base/port.cc |
diff --git a/webrtc/p2p/base/port.cc b/webrtc/p2p/base/port.cc |
index ba9ee685aa0ac5610c6f5f427bb4a3f9a0f4df23..0d4359ced374541ab8bd67b7af1c3a09d6435fbc 100644 |
--- a/webrtc/p2p/base/port.cc |
+++ b/webrtc/p2p/base/port.cc |
@@ -785,6 +785,7 @@ Connection::Connection(Port* port, |
connected_(true), |
pruned_(false), |
use_candidate_attr_(false), |
+ nominated_(false), |
remote_ice_mode_(ICEMODE_FULL), |
requests_(port->thread()), |
rtt_(DEFAULT_RTT), |
@@ -952,8 +953,10 @@ void Connection::OnReadPacket( |
if (port_->GetIceRole() == ICEROLE_CONTROLLED) { |
const StunByteStringAttribute* use_candidate_attr = |
msg->GetByteString(STUN_ATTR_USE_CANDIDATE); |
- if (use_candidate_attr) |
- SignalUseCandidate(this); |
+ if (use_candidate_attr) { |
+ set_nominated(true); |
+ SignalNominated(this); |
+ } |
} |
} else { |
// The packet had the right local username, but the remote username |