mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Close listen socket in destructor.
This commit is contained in:
parent
5f8eadfb16
commit
2bc7a9bd30
@ -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 )
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user