From 9cf3edf10f79335b65ceb9599f10483557d48047 Mon Sep 17 00:00:00 2001 From: tiptorrent development team Date: Fri, 10 Sep 2021 13:40:06 +0200 Subject: call shutdown() before close() --- src/core.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/core.c b/src/core.c index 95bb614..9823c7a 100644 --- a/src/core.c +++ b/src/core.c @@ -41,6 +41,7 @@ static void tip_client_release(struct ev_loop *loop, struct tip_client *cli) list_del(&cli->list); ev_io_stop(loop, &cli->io); + shutdown(cli->io.fd, SHUT_RDWR); close(cli->io.fd); if (cli->fd > 0) close(cli->fd); -- cgit v1.2.3-18-g5258