mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 03:25:16 +00:00
Force sending a FIN packet on rpcn disconnect
This commit is contained in:
parent
75494066ea
commit
f709a5747a
1 changed files with 2 additions and 0 deletions
|
@ -673,8 +673,10 @@ namespace rpcn
|
|||
if (sockfd)
|
||||
{
|
||||
#ifdef _WIN32
|
||||
::shutdown(sockfd, SD_BOTH);
|
||||
::closesocket(sockfd);
|
||||
#else
|
||||
::shutdown(sockfd, SHUT_RDWR);
|
||||
::close(sockfd);
|
||||
#endif
|
||||
sockfd = 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue