| Index: net/quic/chromium/quic_http_stream.cc
|
| diff --git a/net/quic/chromium/quic_http_stream.cc b/net/quic/chromium/quic_http_stream.cc
|
| index d7a0a739955f1636b6b8982e282dcbda5a7a132b..cdddc26e7f480127304d80770ac6722608edb29b 100644
|
| --- a/net/quic/chromium/quic_http_stream.cc
|
| +++ b/net/quic/chromium/quic_http_stream.cc
|
| @@ -776,6 +776,12 @@ void QuicHttpStream::ResetStream() {
|
| push_handle_->Cancel();
|
| push_handle_ = nullptr;
|
| }
|
| +
|
| + // If |request_body_stream_| is non-NULL, Reset it, to abort any in progress
|
| + // read.
|
| + if (request_body_stream_)
|
| + request_body_stream_->Reset();
|
| +
|
| if (!stream_)
|
| return;
|
| DCHECK_LE(stream_->NumBytesConsumed(), stream_->stream_bytes_read());
|
| @@ -785,11 +791,6 @@ void QuicHttpStream::ResetStream() {
|
| closed_is_first_stream_ = stream_->IsFirstStream();
|
| stream_->ClearDelegate();
|
| stream_ = nullptr;
|
| -
|
| - // If |request_body_stream_| is non-NULL, Reset it, to abort any in progress
|
| - // read.
|
| - if (request_body_stream_)
|
| - request_body_stream_->Reset();
|
| }
|
|
|
| int QuicHttpStream::GetResponseStatus() {
|
|
|