Change QuicStream::CloseConnectionWithDetails() to QuicStream::OnUnrecoverableError. The stream shouldn't be able to instruct the session on what to do. Instead, it should just report its state change and let the session handle it. gfe-relnote: name change only. Not protected. PiperOrigin-RevId: 294966339 Change-Id: Ibff2ed7169d0964ea5f19823445f5aa9ce8c5916
diff --git a/quic/core/tls_client_handshaker.cc b/quic/core/tls_client_handshaker.cc index 350a9ae..6f0bc4d 100644 --- a/quic/core/tls_client_handshaker.cc +++ b/quic/core/tls_client_handshaker.cc
@@ -340,7 +340,7 @@ const std::string& reason_phrase) { DCHECK(!reason_phrase.empty()); state_ = STATE_CONNECTION_CLOSED; - stream()->CloseConnectionWithDetails(error, reason_phrase); + stream()->OnUnrecoverableError(error, reason_phrase); } void TlsClientHandshaker::FinishHandshake() {