aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authorroot <root@f38db490-d61c-443f-a65b-d21fe96a405b>2006-10-02 18:01:57 +0000
committerroot <root@f38db490-d61c-443f-a65b-d21fe96a405b>2006-10-02 18:01:57 +0000
commit1bf78cf488cc64da8684f6492e601c5b40b9c1a5 (patch)
tree07842e5e9855273da9c9ae19a4bb53d3a340916e /io.c
parenta523af70ab0316e786d1bf10f77b6de4df69453b (diff)
automerge commit
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2-netsec@44184 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;
}