close socket after if accept failed

This commit is contained in:
orignal 2019-11-20 13:00:50 -05:00
parent 704fca969f
commit 0abb871f3f
2 changed files with 4 additions and 1 deletions

View file

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