Index: net/server/http_server.cc |
diff --git a/net/server/http_server.cc b/net/server/http_server.cc |
index fb0dab37a4f44702ea25f2e603a5cba491f41d06..6c7ee52f31b3ed4c7ae8076cbcf063aec87d1491 100644 |
--- a/net/server/http_server.cc |
+++ b/net/server/http_server.cc |
@@ -153,7 +153,9 @@ int HttpServer::HandleAcceptResult(int rv) { |
HttpConnection* connection = |
new HttpConnection(++last_id_, accepted_socket_.Pass()); |
id_to_connection_[connection->id()] = connection; |
- DoReadLoop(connection); |
+ delegate_->OnConnect(connection->id()); |
+ if (!HasClosedConnection(connection)) |
+ DoReadLoop(connection); |
return OK; |
} |