mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-08 22:13:48 +01:00
teminate non-connected NTCP session
This commit is contained in:
parent
b9e3931e80
commit
6beb527058
1 changed files with 1 additions and 3 deletions
|
@ -838,11 +838,9 @@ namespace transport
|
||||||
{
|
{
|
||||||
LogPrint (eLogError, "Connect error: ", ecode.message ());
|
LogPrint (eLogError, "Connect error: ", ecode.message ());
|
||||||
if (ecode != boost::asio::error::operation_aborted)
|
if (ecode != boost::asio::error::operation_aborted)
|
||||||
{
|
|
||||||
i2p::data::netdb.SetUnreachable (conn->GetRemoteIdentity ().GetIdentHash (), true);
|
i2p::data::netdb.SetUnreachable (conn->GetRemoteIdentity ().GetIdentHash (), true);
|
||||||
conn->Terminate ();
|
conn->Terminate ();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
LogPrint (eLogInfo, "Connected to ", conn->GetSocket ().remote_endpoint ());
|
LogPrint (eLogInfo, "Connected to ", conn->GetSocket ().remote_endpoint ());
|
||||||
|
|
Loading…
Add table
Reference in a new issue