diff --git a/libi2pd/NTCPSession.cpp b/libi2pd/NTCPSession.cpp index cc46f9e6..27f30600 100644 --- a/libi2pd/NTCPSession.cpp +++ b/libi2pd/NTCPSession.cpp @@ -970,7 +970,7 @@ namespace transport { // hit limit, close premature LogPrint(eLogWarning, "NTCP: limiting with backoff session from ", ep); - conn->GetSocket().close(); + conn->Terminate(); return; } LogPrint (eLogDebug, "NTCP: Connected from ", ep); @@ -1005,7 +1005,7 @@ namespace transport { // hit limit, close premature LogPrint(eLogWarning, "NTCP: limiting with backoff on session from ", ep); - conn->GetSocket().close(); + conn->Terminate(); return; }