Index: net/tools/quic/test_tools/quic_test_client.cc |
diff --git a/net/tools/quic/test_tools/quic_test_client.cc b/net/tools/quic/test_tools/quic_test_client.cc |
index db9a9b982e8df5c62e83b3700ebb8f261f3c5997..3984046ee547c915f6d4a093973f06cec092864b 100644 |
--- a/net/tools/quic/test_tools/quic_test_client.cc |
+++ b/net/tools/quic/test_tools/quic_test_client.cc |
@@ -561,6 +561,7 @@ void QuicTestClient::OnClose(QuicSpdyStream* stream) { |
// Always close the stream, regardless of whether it was the last stream |
// written. |
client()->OnClose(stream); |
+ ++num_responses_; |
} |
if (stream_ != stream) { |
return; |
@@ -581,7 +582,6 @@ void QuicTestClient::OnClose(QuicSpdyStream* stream) { |
response_header_size_ = response_headers_.GetSizeForWriteBuffer(); |
response_body_size_ = stream_->data().size(); |
stream_ = nullptr; |
- ++num_responses_; |
} |
bool QuicTestClient::CheckVary(const SpdyHeaderBlock& client_request, |