diff options
Diffstat (limited to 'net/socket/client_socket_pool_base.cc')
-rw-r--r-- | net/socket/client_socket_pool_base.cc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/net/socket/client_socket_pool_base.cc b/net/socket/client_socket_pool_base.cc index d10cf60..db3858d 100644 --- a/net/socket/client_socket_pool_base.cc +++ b/net/socket/client_socket_pool_base.cc @@ -146,9 +146,8 @@ int ClientSocketPoolBase::RequestSocket( connect_job_map_[handle] = job; } group.jobs.insert(job); - } else { - if (group.IsEmpty()) - group_map_.erase(group_name); + } else if (group.IsEmpty()) { + group_map_.erase(group_name); } return rv; @@ -281,7 +280,6 @@ void ClientSocketPoolBase::CleanupIdleSockets(bool force) { // Delete group if no longer needed. if (group.IsEmpty()) { - CHECK(group.pending_requests.empty()); group_map_.erase(i++); } else { ++i; @@ -521,7 +519,6 @@ void ClientSocketPoolBase::CancelAllConnectJobs() { // Delete group if no longer needed. if (group.IsEmpty()) { - CHECK(group.pending_requests.empty()); group_map_.erase(i++); } else { ++i; |