fix: windows handle comparaison

This commit is contained in:
2021-09-02 19:36:27 +02:00
parent e3281afeca
commit 600338bbb7

View File

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