mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-27 19:27:49 +02:00
don't throw exception if connection failed
This commit is contained in:
parent
c4171a01bd
commit
fc5fc5bbee
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue