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

Unified Diff: net/quic/quic_connection_helper.cc

Issue 15937012: Land Recent QUIC changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Small bug fixes Created 7 years, 7 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: net/quic/quic_connection_helper.cc
diff --git a/net/quic/quic_connection_helper.cc b/net/quic/quic_connection_helper.cc
index 1a48ff1dc38f3a13c006de25dd266fe98096c853..ec2866ee1168018212bb507e0ecc732aa2d53b0c 100644
--- a/net/quic/quic_connection_helper.cc
+++ b/net/quic/quic_connection_helper.cc
@@ -117,7 +117,10 @@ void QuicConnectionHelper::SetSendAlarm(QuicTime alarm_time) {
}
void QuicConnectionHelper::SetTimeoutAlarm(QuicTime::Delta delay) {
- DCHECK(!timeout_alarm_registered_);
+ // CheckForTimeout will call SetTimeoutAlarm for the remaining time if alarm
+ // goes off before the delay.
+ if (timeout_alarm_registered_)
+ return;
timeout_alarm_registered_ = true;
task_runner_->PostDelayedTask(
FROM_HERE,

Powered by Google App Engine
This is Rietveld 408576698