Index: net/http/http_stream_request.cc |
diff --git a/net/http/http_stream_request.cc b/net/http/http_stream_request.cc |
index d316fa5e4081dce5c8ef23c952bff7d439c73e5f..2765fa8b363f5f96f7b0fdbc1a897380af12bf41 100644 |
--- a/net/http/http_stream_request.cc |
+++ b/net/http/http_stream_request.cc |
@@ -492,8 +492,11 @@ int HttpStreamRequest::DoInitConnection() { |
// Check first if we have a spdy session for this group. If so, then go |
// straight to using that. |
HostPortProxyPair pair(endpoint_, proxy_info()->proxy_server()); |
- if (!preconnect_delegate_ && |
- session_->spdy_session_pool()->HasSession(pair)) { |
+ if (session_->spdy_session_pool()->HasSession(pair)) { |
+ // If we're preconnecting, we're do need to preconnect anything since we |
+ // already have a SpdySession, so we're done. |
+ if (preconnect_delegate_) |
+ return OK; |
using_spdy_ = true; |
next_state_ = STATE_CREATE_STREAM; |
return OK; |