Browse Source

use terminate

pull/982/head
Jeff Becker 7 years ago
parent
commit
7a9dc0eec0
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05
  1. 4
      libi2pd/NTCPSession.cpp

4
libi2pd/NTCPSession.cpp

@ -970,7 +970,7 @@ namespace transport @@ -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 @@ -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;
}

Loading…
Cancel
Save