Browse Source

don't throw exception if connection failed

pull/623/head
orignal 8 years ago
parent
commit
fc5fc5bbee
  1. 2
      NTCPSession.cpp

2
NTCPSession.cpp

@ -952,7 +952,7 @@ namespace transport @@ -952,7 +952,7 @@ namespace transport
{
if (ecode)
{
LogPrint (eLogError, "NTCP: Can't connect to ", conn->GetSocket ().remote_endpoint (), ": ", ecode.message ());
LogPrint (eLogError, "NTCP: Connect error ", ecode.message ());
if (ecode != boost::asio::error::operation_aborted)
i2p::data::netdb.SetUnreachable (conn->GetRemoteIdentity ()->GetIdentHash (), true);
conn->Terminate ();

Loading…
Cancel
Save