diff --git a/microstack/ILibAsyncSocket.c b/microstack/ILibAsyncSocket.c index 794e726..80927c8 100644 --- a/microstack/ILibAsyncSocket.c +++ b/microstack/ILibAsyncSocket.c @@ -799,7 +799,7 @@ void ILibAsyncSocket_Disconnect(ILibAsyncSocket_SocketModule socketModule) #endif closesocket(s); #elif defined(_POSIX) - shutdown(s, SHUT_RD); + shutdown(s, SHUT_WR); close(s); #endif }