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

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

Issue 2442813002: Fix more swarming test failures by using fake clock. (Closed)
Patch Set: Advance the clock by 1 second to avoid test failure due to assumptions on non-zero actual time valu… Created 4 years, 2 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
« no previous file with comments | « webrtc/p2p/base/p2ptransportchannel_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/p2p/base/port.cc
diff --git a/webrtc/p2p/base/port.cc b/webrtc/p2p/base/port.cc
index 8742d0f9e2c15136b22340ffe53dde7c2fb1b5af..b9ead32b543525ae571e46b72d1ab392c2d5afda 100644
--- a/webrtc/p2p/base/port.cc
+++ b/webrtc/p2p/base/port.cc
@@ -925,7 +925,8 @@ void Connection::set_write_state(WriteState value) {
}
void Connection::UpdateReceiving(int64_t now) {
- bool receiving = now <= last_received() + receiving_timeout_;
+ bool receiving =
+ last_received() > 0 && now <= last_received() + receiving_timeout_;
if (receiving_ == receiving) {
return;
}
« no previous file with comments | « webrtc/p2p/base/p2ptransportchannel_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698