diff --git a/libfreerdp-core/tcp.c b/libfreerdp-core/tcp.c index 542206b5d..2bdd616be 100644 --- a/libfreerdp-core/tcp.c +++ b/libfreerdp-core/tcp.c @@ -199,6 +199,7 @@ boolean tcp_disconnect(rdpTcp * tcp) { if (tcp->sockfd != -1) { + shutdown(tcp->sockfd, SHUT_RDWR); close(tcp->sockfd); tcp->sockfd = -1; }