Close listen socket in destructor.

This commit is contained in:
Bartosz Taudul 2019-06-09 18:14:04 +02:00
parent 5f8eadfb16
commit 2bc7a9bd30

View File

@ -275,6 +275,7 @@ ListenSocket::ListenSocket()
ListenSocket::~ListenSocket() ListenSocket::~ListenSocket()
{ {
if( m_sock != -1 ) Close();
} }
bool ListenSocket::Listen( const char* port, int backlog ) bool ListenSocket::Listen( const char* port, int backlog )