fix: windows handle comparaison
This commit is contained in:
@@ -49,7 +49,7 @@ bool TCPListener::accept(TCPSocket& newSocket){
|
|||||||
}
|
}
|
||||||
|
|
||||||
void TCPListener::destroy(){
|
void TCPListener::destroy(){
|
||||||
if(m_Handle != INVALID_SOCKET)
|
if(m_Handle < 0)
|
||||||
::closesocket(m_Handle);
|
::closesocket(m_Handle);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user