fix: again
This commit is contained in:
@@ -72,7 +72,7 @@ std::size_t Socket::Send(DataBuffer& buffer) {
|
||||
}
|
||||
|
||||
void Socket::Disconnect() {
|
||||
if (m_Handle != INVALID_SOCKET)
|
||||
if (m_Handle < 0)
|
||||
closesocket(m_Handle);
|
||||
m_Status = Disconnected;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user