aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io.c b/io.c
index c19d222c6..c54f4e306 100644
--- a/io.c
+++ b/io.c
@@ -247,7 +247,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;
}