mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
This too.
This commit is contained in:
1 parent
fe71a10945
commit
2a59e75ea3
1 file changed
-4
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user