| 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 c8e8b970aa7712beee203b507d6c7ae782959d23..dcd9449d6ac845de3df36f60d380276ea9ff6904 100644
|
| --- a/net/quic/chromium/quic_http_stream.cc
|
| +++ b/net/quic/chromium/quic_http_stream.cc
|
| @@ -497,11 +497,10 @@ bool QuicHttpStream::HasSendHeadersComplete() {
|
| void QuicHttpStream::OnCryptoHandshakeConfirmed() {
|
| was_handshake_confirmed_ = true;
|
| if (next_state_ == STATE_WAIT_FOR_CONFIRMATION_COMPLETE) {
|
| - int rv = DoLoop(OK);
|
| -
|
| - if (rv != ERR_IO_PENDING && !callback_.is_null()) {
|
| - DoCallback(rv);
|
| - }
|
| + // Post a task to avoid reentrant calls into the session.
|
| + base::ThreadTaskRunnerHandle::Get()->PostTask(
|
| + FROM_HERE, base::Bind(&QuicHttpStream::OnIOComplete,
|
| + weak_factory_.GetWeakPtr(), OK));
|
| }
|
| }
|
|
|
|
|