fix windows screaming

This commit is contained in:
lizzie 2026-07-02 07:50:36 +00:00 • committed by crueter
parent 25f56fdf69
commit 7966ec8809
2 changed files with 6 additions and 4 deletions

View file

@ -925,10 +925,8 @@ std::pair<s32, Errno> Poll(std::span<HostPollFD> pollfds, s32 timeout) {
}
Socket::~Socket() {
if (fd == INVALID_SOCKET) {
return;
}
(void)closesocket(fd);
if (fd != INVALID_SOCKET)
(void)closesocket(fd);
fd = INVALID_SOCKET;
}