Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(557)

Unified Diff: net/socket/client_socket_pool_base.h

Issue 159597: Fix crash in client_socket_pool_base.cc. (Closed)
Patch Set: add test for late binding scenario Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/socket/client_socket_pool_base.h
diff --git a/net/socket/client_socket_pool_base.h b/net/socket/client_socket_pool_base.h
index 36281b478f0b0a6533bc3af419a833090bc106e0..21cd642a1fd2a8fc401ffe33a18164ec457a975b 100644
--- a/net/socket/client_socket_pool_base.h
+++ b/net/socket/client_socket_pool_base.h
@@ -196,7 +196,8 @@ class ClientSocketPoolBase
Group() : active_socket_count(0) {}
bool IsEmpty() const {
- return active_socket_count == 0 && idle_sockets.empty() && jobs.empty();
+ return active_socket_count == 0 && idle_sockets.empty() && jobs.empty() &&
+ pending_requests.empty() && connecting_requests.empty();
}
bool HasAvailableSocketSlot(int max_sockets_per_group) const {
« no previous file with comments | « no previous file | net/socket/client_socket_pool_base.cc » ('j') | net/socket/client_socket_pool_base_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698