commit 2ab2c437c9ec8fe1c2fedae13799e508c66fea8f from: Omar Polo date: Fri Jan 28 21:49:14 2022 UTC remove clients from the splay at the start of close_conn commit - 057b5ab72f72be49038ae43aed7727cdb212bbb7 commit + 2ab2c437c9ec8fe1c2fedae13799e508c66fea8f blob - 59ebc0fe956c7b3a89e53b9ba825ceed19fa703b blob + 600000cb2a42c3f3f0807919798975fa921d6356 --- kamid/listener.c +++ kamid/listener.c @@ -877,6 +877,8 @@ static void close_conn(struct client *c) { log_debug("closing connection"); + + SPLAY_REMOVE(clients_tree_id, &clients, c); if (c->iev.ibuf.fd != -1) { listener_imsg_compose_client(c, IMSG_CONN_GONE, 0, NULL, 0);