diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-10-02 17:26:34 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-10-02 17:26:34 +0000 |
commit | c6f8f943b80fd86a227ba179fac21661b307c2c2 (patch) | |
tree | 6b31fd8f6cea5bdf56799c086bdd1a8ec1d34a9f /main/io.c | |
parent | 43180a62739e491c34755ace95ab2fd7eac55f31 (diff) |
Merged revisions 44169 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
................
r44169 | file | 2006-10-02 13:25:13 -0400 (Mon, 02 Oct 2006) | 10 lines
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/trunk@44171 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/io.c')
-rw-r--r-- | main/io.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |