fix windows screaming

This commit is contained in:
lizzie
2026-07-02 07:50:36 +00:00
committed by crueter
parent 5ffdffaee2
commit 91f2d71b74
2 changed files with 6 additions and 4 deletions
+2 -4
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;
}