1
0
mirror of https://github.com/PurpleI2P/i2pd.git synced 2025-01-22 08:14:15 +00:00

use terminate

This commit is contained in:
Jeff Becker 2017-10-30 08:37:54 -04:00
parent 6441c9d5d8
commit 7a9dc0eec0
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

View File

@ -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;
}