diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-10-02 17:22:27 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-10-02 17:22:27 +0000 |
commit | 50f4c57f5c03e7cf81b8ab03961ea44e837f6a87 (patch) | |
tree | 39b4cd8036d4c725ee70e9e71386833d942d7ba1 /io.c | |
parent | 782395275a80a888fa0bcdef8b0ebcdcba3d05a6 (diff) |
Shrink when current_ioc is unused. It is set to -1 when unused, not 0. (issue #7941 reported by eclubb)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@44168 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |