Commit b52c2394 authored by zea@chromium.org's avatar zea@chromium.org

[GCM] Close the socket on connection factory shutdown

We don't want to attempt to reuse a socket across shutdowns, and given
socket pools any open socket can be reused. Make sure to close the socket on
shutdown

BUG=392546

Review URL: https://codereview.chromium.org/381273003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@282551 0039d316-1c4b-4281-b951-d872f2087c98
parent 4939383c
......@@ -67,6 +67,7 @@ ConnectionFactoryImpl::ConnectionFactoryImpl(
}
ConnectionFactoryImpl::~ConnectionFactoryImpl() {
CloseSocket();
net::NetworkChangeNotifier::RemoveNetworkChangeObserver(this);
if (pac_request_) {
network_session_->proxy_service()->CancelPacRequest(pac_request_);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment