aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2006-10-02 17:25:13 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2006-10-02 17:25:13 +0000
commitf8ea7b92d9875fc1507105a5da2742fb14c85280 (patch)
tree30c28e51d64dcac7847b290434930d1fbd304077
parent4cc808aa16b099738bee08e14974761bc3f1c0a9 (diff)
Merged revisions 44168 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r44168 | file | 2006-10-02 13:22:27 -0400 (Mon, 02 Oct 2006) | 2 lines 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.4@44169 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--main/io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/io.c b/main/io.c
index 220b29d50..1c4d5f4e0 100644
--- a/main/io.c
+++ b/main/io.c
@@ -242,7 +242,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;
}