summaryrefslogtreecommitdiffstats
path: root/src/core.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c1
1 files changed, 1 insertions, 0 deletions
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);