mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-02-06 18:40:36 +00:00
Force sending a FIN packet on rpcn disconnect
This commit is contained in:
parent
75494066ea
commit
f709a5747a
@ -673,8 +673,10 @@ namespace rpcn
|
|||||||
if (sockfd)
|
if (sockfd)
|
||||||
{
|
{
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|
::shutdown(sockfd, SD_BOTH);
|
||||||
::closesocket(sockfd);
|
::closesocket(sockfd);
|
||||||
#else
|
#else
|
||||||
|
::shutdown(sockfd, SHUT_RDWR);
|
||||||
::close(sockfd);
|
::close(sockfd);
|
||||||
#endif
|
#endif
|
||||||
sockfd = 0;
|
sockfd = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user