Shrink when current_ioc is unused. It is set to -1 when unused, not 0. (issue #7941 reported by eclubb)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@44168 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.2
Joshua Colp 19 years ago
parent 77a645d0c6
commit d1f421a9f6

@ -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;
}

Loading…
Cancel
Save