aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2006-10-02 17:22:27 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2006-10-02 17:22:27 +0000
commit50f4c57f5c03e7cf81b8ab03961ea44e837f6a87 (patch)
tree39b4cd8036d4c725ee70e9e71386833d942d7ba1 /io.c
parent782395275a80a888fa0bcdef8b0ebcdcba3d05a6 (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.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;
}