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

Unified Diff: net/quic/quic_connection.cc

Issue 2015523002: Pulls out QuicConnection alarm cancellation into method. No behavior change. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@122677152
Patch Set: Created 4 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
« no previous file with comments | « net/quic/quic_connection.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_connection.cc
diff --git a/net/quic/quic_connection.cc b/net/quic/quic_connection.cc
index eed31e49865226f919e5243325fd4a9bc87a01d5..8162dea221ef2fdef684a1622f102c96d171e3ce 100644
--- a/net/quic/quic_connection.cc
+++ b/net/quic/quic_connection.cc
@@ -2046,6 +2046,10 @@ void QuicConnection::TearDownLocalConnectionState(
}
// Cancel the alarms so they don't trigger any action now that the
// connection is closed.
+ CancelAllAlarms();
+}
+
+void QuicConnection::CancelAllAlarms() {
ack_alarm_->Cancel();
ping_alarm_->Cancel();
resume_writes_alarm_->Cancel();
« no previous file with comments | « net/quic/quic_connection.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698