Merge pull request #110 from mfleisz/disconnect_fix

tcp: Added correct shutdown of socket in disconnect
This commit is contained in:
Marc-André Moreau 2011-09-19 07:30:58 -07:00
commit cdc0ba4393

View File

@ -199,6 +199,7 @@ boolean tcp_disconnect(rdpTcp * tcp)
{
if (tcp->sockfd != -1)
{
shutdown(tcp->sockfd, SHUT_RDWR);
close(tcp->sockfd);
tcp->sockfd = -1;
}