Properly close TLS connections

refs #6724
This commit is contained in:
Gunnar Beutner 2014-08-04 13:35:12 +02:00
parent 3c8e84e59e
commit 9c9982616b
1 changed files with 1 additions and 0 deletions

View File

@ -226,6 +226,7 @@ void ApiListener::AddConnection(const Endpoint::Ptr& endpoint)
endpoint->SetConnecting(false);
} catch (const std::exception& ex) {
endpoint->SetConnecting(false);
client->Close();
std::ostringstream info, debug;
info << "Cannot connect to host '" << host << "' on port '" << port << "'";