Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(425)

Unified Diff: webrtc/p2p/base/p2ptransportchannel.h

Issue 2099563004: Start ICE connectivity checks as soon as the first pair is pingable. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Updating unit test failures. We ping too fast for our own good. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/p2p/base/p2ptransportchannel.h
diff --git a/webrtc/p2p/base/p2ptransportchannel.h b/webrtc/p2p/base/p2ptransportchannel.h
index f6021615f083e19ea0684355e7c884a4a56eaea9..5b32832b06ac1ac9c54ee965acedf2cf90c20561 100644
--- a/webrtc/p2p/base/p2ptransportchannel.h
+++ b/webrtc/p2p/base/p2ptransportchannel.h
@@ -93,7 +93,6 @@ class P2PTransportChannel : public TransportChannelImpl,
void SetRemoteIceCredentials(const std::string& ice_ufrag,
const std::string& ice_pwd) override;
void SetRemoteIceMode(IceMode mode) override;
- void Connect() override;
void MaybeStartGathering() override;
IceGatheringState gathering_state() const override {
return gathering_state_;
@@ -366,6 +365,7 @@ class P2PTransportChannel : public TransportChannelImpl,
TransportChannelState state_ = TransportChannelState::STATE_INIT;
IceConfig config_;
int last_sent_packet_id_ = -1; // -1 indicates no packet was sent before.
+ bool started_pinging_ = false;
RTC_DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel);
};

Powered by Google App Engine
This is Rietveld 408576698