mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-20 19:44:57 +00:00
Merge pull request #8389 from sepalani/fix-so
Socket: Abort pending ops on close
This commit is contained in:
commit
2673280614
1 changed files with 6 additions and 0 deletions
|
@ -170,6 +170,12 @@ s32 WiiSocket::CloseFd()
|
|||
ReturnValue = WiiSockMan::GetNetErrorCode(EITHER(WSAENOTSOCK, EBADF), "CloseFd", false);
|
||||
}
|
||||
fd = -1;
|
||||
|
||||
for (auto it = pending_sockops.begin(); it != pending_sockops.end();)
|
||||
{
|
||||
GetIOS()->EnqueueIPCReply(it->request, -SO_ENOTCONN);
|
||||
it = pending_sockops.erase(it);
|
||||
}
|
||||
return ReturnValue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue