Cancel process_undecryptable_packets_alarm_ when CancelAllAlarm(). gfe-relnote: Trivial bug fix. Not flag protected. PiperOrigin-RevId: 246543667 Change-Id: Ife2dd7627ee0e4d6e0da018e89a8df24802b0bee
diff --git a/quic/core/quic_connection.cc b/quic/core/quic_connection.cc index cf36197..c8bfd01 100644 --- a/quic/core/quic_connection.cc +++ b/quic/core/quic_connection.cc
@@ -3096,6 +3096,7 @@ timeout_alarm_->Cancel(); mtu_discovery_alarm_->Cancel(); path_degrading_alarm_->Cancel(); + process_undecryptable_packets_alarm_->Cancel(); } QuicByteCount QuicConnection::max_packet_length() const {
diff --git a/quic/core/quic_connection_test.cc b/quic/core/quic_connection_test.cc index f78bb51..a7ab4ff 100644 --- a/quic/core/quic_connection_test.cc +++ b/quic/core/quic_connection_test.cc
@@ -4451,6 +4451,7 @@ EXPECT_FALSE(connection_.GetRetransmissionAlarm()->IsSet()); EXPECT_FALSE(connection_.GetSendAlarm()->IsSet()); EXPECT_FALSE(connection_.GetMtuDiscoveryAlarm()->IsSet()); + EXPECT_FALSE(connection_.GetProcessUndecryptablePacketsAlarm()->IsSet()); } TEST_P(QuicConnectionTest, IdleTimeoutAfterFirstSentPacket) {