1
0
mirror of https://github.com/solemnwarning/ipxwrapper synced 2024-12-30 16:45:37 +01:00

Updated shutdown to work with SPX sockets.

This commit is contained in:
Daniel Collins 2014-01-11 22:59:58 +00:00
parent 94d3a6cbbd
commit ae2837258f

View File

@ -1107,6 +1107,12 @@ int PASCAL shutdown(SOCKET fd, int cmd)
if(sock)
{
if(sock->flags & IPX_IS_SPX)
{
unlock_sockets();
return r_shutdown(fd, cmd);
}
else{
if(cmd == SD_RECEIVE || cmd == SD_BOTH)
{
sock->flags &= ~IPX_RECV;
@ -1120,6 +1126,7 @@ int PASCAL shutdown(SOCKET fd, int cmd)
unlock_sockets();
return 0;
}
}
else{
return r_shutdown(fd, cmd);
}