mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
close socket after if accept failed
This commit is contained in:
parent
704fca969f
commit
0abb871f3f
2 changed files with 4 additions and 1 deletions
|
@ -133,6 +133,7 @@ namespace transport
|
|||
void Terminate ();
|
||||
void TerminateByTimeout ();
|
||||
void Done ();
|
||||
void Close () { m_Socket.close (); }; // for accept
|
||||
|
||||
boost::asio::ip::tcp::socket& GetSocket () { return m_Socket; };
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue