fixed a bug

This commit is contained in:
aiden 2022-06-08 04:16:53 +01:00
parent 3d2abb937d
commit 008bab17f4
No known key found for this signature in database
GPG Key ID: 0D87FF3415416DB1

@ -89,7 +89,9 @@ void bdd_io_epoll_remove(struct bdd_io *io) {
}
io->in_epoll = 0;
epoll_ctl(io->conversation->epoll_fd, EPOLL_CTL_DEL, bdd_io_fd(io), NULL);
io->conversation->n_in_epoll_with_events -= 1;
if ((io->epoll_events & ~EPOLLET) != 0) {
io->conversation->n_in_epoll_with_events -= 1;
}
return;
}