Update NetAdhocPdp_Delete

This commit is contained in:
AdamN 2024-06-29 00:44:51 +07:00 committed by GitHub
parent 6cccb9cb72
commit 2222254f3e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2212,7 +2212,7 @@ int NetAdhocPdp_Delete(int id, int unknown) {
sl.l_onoff = 1; // non-zero value enables linger option in kernel
sl.l_linger = 0; // timeout interval in seconds
setsockopt(sock->data.pdp.id, SOL_SOCKET, SO_LINGER, (const char*)&sl, sizeof(sl));
shutdown(sock->data.pdp.id, SD_BOTH);
shutdown(sock->data.pdp.id, SD_RECEIVE);
closesocket(sock->data.pdp.id);
// Remove Port Forward from Router