tcp: Added correct shutdown of socket in disconnect
This commit is contained in:
parent
bdbe1437eb
commit
2f91548a20
@ -199,6 +199,7 @@ boolean tcp_disconnect(rdpTcp * tcp)
|
||||
{
|
||||
if (tcp->sockfd != -1)
|
||||
{
|
||||
shutdown(tcp->sockfd, SHUT_RDWR);
|
||||
close(tcp->sockfd);
|
||||
tcp->sockfd = -1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user