mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-21 03:54:57 +00:00
Socket: Abort pending operations on close
This commit is contained in:
parent
2d8758daaa
commit
5ec80a554c
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