diff --git a/main/io.c b/main/io.c index 220b29d50c651fa4adf4ee448bd3626c7f0bf8f4..1c4d5f4e003d63c22a2e1c4821316ff64d84987f 100644 --- a/main/io.c +++ b/main/io.c @@ -242,7 +242,7 @@ int ast_io_remove(struct io_context *ioc, int *_id) ioc->fds[x].events = 0; ioc->fds[x].revents = 0; ioc->needshrink = 1; - if (!ioc->current_ioc) + if (ioc->current_ioc == -1) io_shrink(ioc); return 0; }