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

Unified Diff: webrtc/p2p/base/transportchannel.cc

Issue 1207563002: Add flakiness check if there is no received packets in a certain period. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: First-cut Created 5 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
« webrtc/p2p/base/transportchannel.h ('K') | « webrtc/p2p/base/transportchannel.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/p2p/base/transportchannel.cc
diff --git a/webrtc/p2p/base/transportchannel.cc b/webrtc/p2p/base/transportchannel.cc
index a4e8cb8df51f41a83755c8601a3f60fc294bf66d..3b666e4253db602a17d6e2c321b5ea2b5d32224e 100644
--- a/webrtc/p2p/base/transportchannel.cc
+++ b/webrtc/p2p/base/transportchannel.cc
@@ -31,6 +31,13 @@ void TransportChannel::set_readable(bool readable) {
}
}
+void TransportChannel::set_flaky(bool flaky) {
+ if (flaky_ != flaky) {
pthatcher1 2015/06/24 23:42:52 Please use an early return.
honghaiz3 2015/08/05 23:56:56 Done.
+ flaky_ = flaky;
+ SignalFlakyState(this);
+ }
+}
+
void TransportChannel::set_writable(bool writable) {
if (writable_ != writable) {
LOG_J(LS_VERBOSE, this) << "set_writable from:" << writable_ << " to "
« webrtc/p2p/base/transportchannel.h ('K') | « webrtc/p2p/base/transportchannel.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698