Index: net/quic/quic_connection.cc |
diff --git a/net/quic/quic_connection.cc b/net/quic/quic_connection.cc |
index b3e8b3df9820f871dcb474f538bf1ba1c192547b..4970f6684d1e7df0a59245f6756a193d74f1f7c4 100644 |
--- a/net/quic/quic_connection.cc |
+++ b/net/quic/quic_connection.cc |
@@ -1905,6 +1905,7 @@ void QuicConnection::CloseConnection(QuicErrorCode error, bool from_peer) { |
if (debug_visitor_ != nullptr) { |
debug_visitor_->OnConnectionClosed(error, from_peer); |
} |
+ DCHECK(visitor_ != nullptr); |
visitor_->OnConnectionClosed(error, from_peer); |
// Cancel the alarms so they don't trigger any action now that the |
// connection is closed. |