This too.

This commit is contained in:
AdamN authored and GitHub committed 2025-04-13 16:16:46 +07:00
1 parent fe71a10945
commit 2a59e75ea3
1 file changed
-4
-4
View File
@@ -424,10 +424,6 @@ void deleteAllAdhocSockets() {
if (fd > 0) {
// Close Socket
struct linger sl {};
sl.l_onoff = 1; // non-zero value enables linger option in kernel
sl.l_linger = 0; // timeout interval in seconds
setsockopt(fd, SOL_SOCKET, SO_LINGER, (const char*)&sl, sizeof(sl));
shutdown(fd, SD_RECEIVE);
closesocket(fd);
}